Skip to content

[schema] Application Service Registration meta schema #2132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Declare the Application Service Registration schema to follow JSON Schema spec 2020-12.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
$schema: https://json-schema.org/draft/2020-12/schema

type: array
items:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
$schema: https://json-schema.org/draft/2020-12/schema

type: object
title: Registration
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/moderation_policy_rule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
$schema: https://json-schema.org/draft/2020-12/schema

properties:
entity:
description: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$schema: https://json-schema.org/draft/2020-12/schema

type: object
x-addedInMatrixVersion: "1.10"
description: |-
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/core-event-schema/call_event.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$schema: https://json-schema.org/draft/2020-12/schema

description: "The content of all call events shares a set of common fields: those
of room events and some additional VoIP specific fields."
properties:
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/core-event-schema/event.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$schema: https://json-schema.org/draft/2020-12/schema

description: The basic set of fields all events must have.
properties:
content:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$schema: https://json-schema.org/draft/2020-12/schema

description: Metadata about an avatar image.
properties:
h:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$schema: https://json-schema.org/draft/2020-12/schema

description: Metadata about an image.
properties:
h:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$schema: https://json-schema.org/draft/2020-12/schema

description: Metadata about a thumbnail image.
properties:
h:
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/core-event-schema/room_event.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: sync_room_event.yaml
description: Room Events have the following fields.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: room_event.yaml
- $ref: sync_state_event.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
# difficult because the schema would be at two different locations, with
# different relative pathing.

$schema: https://json-schema.org/draft/2020-12/schema

title: StrippedStateEvent
type: object
description: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
# be on events, so we give it a whole event structure as a base for room_event.
# This base doesn't declare a room_id, which instead appears in the room_event.

$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: event.yaml
description: In addition to the Event fields, Room Events have the following additional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

# See sync_room_event.yaml for why this file is here.

$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: sync_room_event.yaml
description: In addition to the Room Event fields, State Events have the following
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
$schema: https://json-schema.org/draft/2020-12/schema

title: UnsignedData
type: object
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.accepted_terms.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/event.yaml
description: |-
Expand Down
1 change: 1 addition & 0 deletions data/event-schemas/schema/m.call.answer.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "This event is sent by the callee when they wish to answer the call.",
"x-weight": 40,
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.call.candidates.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$schema: https://json-schema.org/draft/2020-12/schema

type: object
description: |-
This event is sent by callers after sending an invite and by the callee after
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.call.hangup.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

type: object
description: |
Sent by either party to signal their termination of the call. This can
Expand Down
1 change: 1 addition & 0 deletions data/event-schemas/schema/m.call.invite.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "This event is sent by the caller when they wish to establish a call.",
"x-weight": 10,
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.call.negotiate.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

type: object
description: |
Provides SDP negotiation semantics for media pause, hold/resume, ICE restarts
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.call.reject.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

type: object
description: |
If the `m.call.invite` event has `version` `"1"`, a client wishing to
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$schema: https://json-schema.org/draft/2020-12/schema

type: object
x-addedInMatrixVersion: "1.11"
x-weight: 70
Expand Down
1 change: 1 addition & 0 deletions data/event-schemas/schema/m.call.select_answer.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "This event is sent by the caller's client once it has decided which other client to talk to, by selecting one of multiple possible incoming `m.call.answer` events. Its `selected_party_id` field indicates the answer it's chosen. The `call_id` and `party_id` of the caller is also included. If the callee's client sees a `select_answer` for an answer with party ID other than the one it sent, it ends the call and informs the user the call was answered elsewhere. It does not send any events. Media can start flowing before this event is seen or even sent. Clients that implement previous versions of this specification will ignore this event and behave as they did before.",
"x-addedInMatrixVersion": "1.7",
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.direct.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/event.yaml
description: |-
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.dummy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/event.yaml

Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.forwarded_room_key.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/event.yaml

Expand Down
1 change: 1 addition & 0 deletions data/event-schemas/schema/m.fully_read.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"title": "Read Marker Location Event",
"description": "The current location of the user's read marker in a room. This event appears in the user's room account data for the room the marker is applicable for.",
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.identity_server.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/event.yaml
description: |-
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.ignored_user_list.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/event.yaml
description: |-
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.key.verification.accept.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/event.yaml

Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.key.verification.cancel.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/event.yaml

Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.key.verification.done.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/event.yaml

Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.key.verification.key.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/event.yaml

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

description: |-
Required when sent as an in-room message. Indicates the
`m.key.verification.request` that this message is related to. Note that for
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.key.verification.mac.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/event.yaml

Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.key.verification.ready.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/event.yaml

Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.key.verification.request.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/event.yaml

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/event.yaml

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/event.yaml

Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.key.verification.start.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/event.yaml

Expand Down
1 change: 1 addition & 0 deletions data/event-schemas/schema/m.marked_unread.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"title": "Unread Marker Event",
"description": "The current state of the user's unread marker in a room. This event appears in the user's room account data for the room the marker is applicable for.",
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.policy.rule.room.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/state_event.yaml
description: A moderation policy rule which affects room IDs and room aliases.
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.policy.rule.server.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/state_event.yaml
description: A moderation policy rule which affects servers.
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.policy.rule.user.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/state_event.yaml
description: A moderation policy rule which affects users.
Expand Down
1 change: 1 addition & 0 deletions data/event-schemas/schema/m.presence.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"title": "Presence Event",
"description": "Informs the client of a user's presence state change.",
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.push_rules.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/event.yaml
description: Describes all push rules for this user.
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.reaction.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/room_event.yaml
description: |-
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.receipt.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$schema: https://json-schema.org/draft/2020-12/schema

type: object
title: Receipt Event
description: Informs the client of new receipts.
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.room.avatar.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/state_event.yaml
description: A picture that is associated with the room. This can be displayed alongside the room information.
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.room.canonical_alias.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/state_event.yaml
description: |-
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.room.create.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/state_event.yaml
description: This is the first event in a room and cannot be changed. It acts as the root of all other events.
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.room.encrypted.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/event.yaml

Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.room.encryption.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/state_event.yaml
description: Defines how messages sent in this room should be encrypted.
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.room.guest_access.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/state_event.yaml
description: 'This event controls whether guest users are allowed to join rooms. If this event is absent, servers should act as if it is present and has the guest_access value "forbidden".'
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.room.history_visibility.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/state_event.yaml
description: This event controls whether a user can see the events that happened in a room from before they joined.
Expand Down
2 changes: 2 additions & 0 deletions data/event-schemas/schema/m.room.join_rules.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
$schema: https://json-schema.org/draft/2020-12/schema

allOf:
- $ref: core-event-schema/state_event.yaml
description: |
Expand Down
Loading