OpenAPI compliance: avoid $ref siblings (#1457)
This strives to fix all remaining cases where additional attributes (most often 'description' but not only) are provided next to $ref by wrapping $ref in allOf; and also drops allOf in a couple of places where $ref is the only element under it.
This commit is contained in:
parent
10844fef8c
commit
9ebcf5f257
14 changed files with 44 additions and 38 deletions
|
@ -85,7 +85,8 @@ allOf:
|
|||
description: |-
|
||||
The updated identity keys (if any) for this device. May be absent if the
|
||||
device has no E2E keys defined.
|
||||
$ref: ../../../client-server/definitions/device_keys.yaml
|
||||
allOf:
|
||||
- $ref: ../../../client-server/definitions/device_keys.yaml
|
||||
required:
|
||||
- user_id
|
||||
- device_id
|
||||
|
|
|
@ -37,8 +37,8 @@ allOf:
|
|||
description: The user ID whose cross-signing keys have changed.
|
||||
example: "@alice:example.com"
|
||||
master_key:
|
||||
type: object
|
||||
$ref: ../../../client-server/definitions/cross_signing_key.yaml
|
||||
allOf:
|
||||
- $ref: ../../../client-server/definitions/cross_signing_key.yaml
|
||||
example: {
|
||||
"user_id": "@alice:example.com",
|
||||
"usage": ["master"],
|
||||
|
@ -47,8 +47,8 @@ allOf:
|
|||
}
|
||||
}
|
||||
self_signing_key:
|
||||
type: object
|
||||
$ref: ../../../client-server/definitions/cross_signing_key.yaml
|
||||
allOf:
|
||||
- $ref: ../../../client-server/definitions/cross_signing_key.yaml
|
||||
example: {
|
||||
"user_id": "@alice:example.com",
|
||||
"usage": ["self_signing"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue