Fix definition of response of POST /_matrix/federation/v1/user/keys/claim
(#1559)
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
746524928c
commit
50fe89d74b
4 changed files with 38 additions and 20 deletions
|
@ -36,7 +36,7 @@
|
|||
{{ $property := partial "json-schema/resolve-allof" $property }}
|
||||
{{ $type := $property.type }}
|
||||
|
||||
{{ if eq $property.type "object" }}
|
||||
{{ if or (eq $property.type "object") (and $property.oneOf (reflect.IsSlice .oneOf)) }}
|
||||
{{ $type = partial "type-or-title" $property }}
|
||||
{{ end }}
|
||||
|
||||
|
@ -121,7 +121,7 @@
|
|||
{{ $types := slice }}
|
||||
|
||||
{{ range .oneOf }}
|
||||
{{ $types = $types | append .type }}
|
||||
{{ $types = $types | append (partial "type-or-title" .) }}
|
||||
{{ end }}
|
||||
|
||||
{{ $type = delimit $types "|" }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue