mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-23 11:34:09 +01:00
Relocate the assertion
This commit is contained in:
parent
493058adab
commit
6849bfdb51
|
|
@ -53,6 +53,11 @@
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{/* Enforce `additionalProperties: {}` instead of the equivalent `additionalProperties: true` for easier processing */}}
|
||||||
|
{{ if eq .additionalProperties true }}
|
||||||
|
{{ errorf "Use `additionalProperties: {}` instead of `additionalProperties: true`" }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
If the object has additional properties *as well as* regular properties, we add a special row to the table.
|
If the object has additional properties *as well as* regular properties, we add a special row to the table.
|
||||||
|
|
||||||
|
|
@ -67,12 +72,6 @@
|
||||||
|
|
||||||
TODO: support `patternProperties` here.
|
TODO: support `patternProperties` here.
|
||||||
*/}}
|
*/}}
|
||||||
|
|
||||||
{{/* Enforce `additionalProperties: {}` instead of the equivalent `additionalProperties: true` for easier processing */}}
|
|
||||||
{{ if eq .additionalProperties true }}
|
|
||||||
{{ errorf "Use `additionalProperties: {}` instead of `additionalProperties: true`" }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ if reflect.IsMap .additionalProperties }}
|
{{ if reflect.IsMap .additionalProperties }}
|
||||||
<tr>
|
<tr>
|
||||||
<td><Other properties></td>
|
<td><Other properties></td>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue