Clean up unecessary allOf
s (#1797)
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
1095179374
commit
26ce3929b4
20 changed files with 32 additions and 77 deletions
|
@ -18,9 +18,7 @@ allOf:
|
|||
- "$ref": core-event-schema/room_event.yaml
|
||||
properties:
|
||||
content:
|
||||
type: object
|
||||
allOf:
|
||||
- "$ref": core-event-schema/call_event.yaml
|
||||
"$ref": core-event-schema/call_event.yaml
|
||||
type:
|
||||
type: string
|
||||
enum:
|
||||
|
|
|
@ -44,8 +44,7 @@ properties:
|
|||
ephemeral public key (encoded as unpadded base64) and the canonical JSON
|
||||
representation of the `m.key.verification.start` message.
|
||||
m.relates_to:
|
||||
allOf:
|
||||
- $ref: m.key.verification.m.relates_to.yaml
|
||||
$ref: m.key.verification.m.relates_to.yaml
|
||||
required:
|
||||
- method
|
||||
- key_agreement_protocol
|
||||
|
|
|
@ -58,8 +58,7 @@ properties:
|
|||
respond again with `m.unexpected_message` to avoid the other device potentially
|
||||
sending another error response.
|
||||
m.relates_to:
|
||||
allOf:
|
||||
- $ref: m.key.verification.m.relates_to.yaml
|
||||
$ref: m.key.verification.m.relates_to.yaml
|
||||
required:
|
||||
- code
|
||||
- reason
|
||||
|
|
|
@ -13,8 +13,7 @@ properties:
|
|||
Required when sent as a to-device message. The opaque identifier for
|
||||
the verification process/request.
|
||||
m.relates_to:
|
||||
allOf:
|
||||
- $ref: m.key.verification.m.relates_to.yaml
|
||||
$ref: m.key.verification.m.relates_to.yaml
|
||||
type: object
|
||||
type:
|
||||
enum:
|
||||
|
|
|
@ -18,8 +18,7 @@ properties:
|
|||
description: |-
|
||||
The device's ephemeral public key, encoded as unpadded base64.
|
||||
m.relates_to:
|
||||
allOf:
|
||||
- $ref: m.key.verification.m.relates_to.yaml
|
||||
$ref: m.key.verification.m.relates_to.yaml
|
||||
required:
|
||||
- key
|
||||
type: object
|
||||
|
|
|
@ -29,8 +29,7 @@ properties:
|
|||
The MAC of the comma-separated, sorted, list of key IDs given in the `mac`
|
||||
property, encoded as unpadded base64.
|
||||
m.relates_to:
|
||||
allOf:
|
||||
- $ref: m.key.verification.m.relates_to.yaml
|
||||
$ref: m.key.verification.m.relates_to.yaml
|
||||
required:
|
||||
- mac
|
||||
- keys
|
||||
|
|
|
@ -27,8 +27,7 @@ properties:
|
|||
items:
|
||||
type: string
|
||||
m.relates_to:
|
||||
allOf:
|
||||
- $ref: m.key.verification.m.relates_to.yaml
|
||||
$ref: m.key.verification.m.relates_to.yaml
|
||||
required:
|
||||
- from_device
|
||||
- methods
|
||||
|
|
|
@ -30,8 +30,7 @@ properties:
|
|||
description: |-
|
||||
The shared secret from the QR code, encoded using unpadded base64.
|
||||
m.relates_to:
|
||||
allOf:
|
||||
- $ref: m.key.verification.m.relates_to.yaml
|
||||
$ref: m.key.verification.m.relates_to.yaml
|
||||
required:
|
||||
- from_device
|
||||
- method
|
||||
|
|
|
@ -58,8 +58,7 @@ properties:
|
|||
type: string
|
||||
enum: ["decimal", "emoji"]
|
||||
m.relates_to:
|
||||
allOf:
|
||||
- $ref: m.key.verification.m.relates_to.yaml
|
||||
$ref: m.key.verification.m.relates_to.yaml
|
||||
required:
|
||||
- from_device
|
||||
- method
|
||||
|
|
|
@ -32,8 +32,7 @@ properties:
|
|||
when the `method` chosen only verifies one user's key. This field will
|
||||
never be present if the `method` verifies keys both ways.
|
||||
m.relates_to:
|
||||
allOf:
|
||||
- $ref: m.key.verification.m.relates_to.yaml
|
||||
$ref: m.key.verification.m.relates_to.yaml
|
||||
required:
|
||||
- from_device
|
||||
- method
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue