mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-23 03:34:08 +01:00
Relocate the assertion
This commit is contained in:
parent
493058adab
commit
6849bfdb51
|
|
@ -53,6 +53,11 @@
|
|||
|
||||
{{ 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.
|
||||
|
||||
|
|
@ -67,12 +72,6 @@
|
|||
|
||||
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 }}
|
||||
<tr>
|
||||
<td><Other properties></td>
|
||||
|
|
|
|||
Loading…
Reference in a new issue