mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 21:14:09 +01:00
Cleanup additionalProperties usage
In capabilities.yaml, additional properties are more likely to be strings (but can also be objects); in cross_signing_key.yaml, the parameter documentation already restricts the number of properties.
This commit is contained in:
parent
77d0f20226
commit
260107941d
|
|
@ -69,8 +69,7 @@ paths:
|
|||
description: |-
|
||||
The custom capabilities the server supports, using the
|
||||
Java package naming convention.
|
||||
additionalProperties:
|
||||
type: object
|
||||
additionalProperties: true
|
||||
properties:
|
||||
"m.change_password":
|
||||
type: object
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@ properties:
|
|||
The public key. The object must have exactly one property, whose name is
|
||||
in the form `<algorithm>:<unpadded_base64_public_key>`, and whose value
|
||||
is the unpadded base64 public key.
|
||||
minProperties: 1
|
||||
maxProperties: 1
|
||||
example:
|
||||
"ed25519:alice+base64+public+key": "alice+base64+public+key"
|
||||
signatures:
|
||||
|
|
|
|||
Loading…
Reference in a new issue