Clean up unecessary allOfs (#1797)

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2024-04-23 18:07:24 +02:00 committed by GitHub
parent 1095179374
commit 26ce3929b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 32 additions and 77 deletions

View file

@ -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:

View file

@ -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

View file

@ -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

View file

@ -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:

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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