mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-01-06 07:53:42 +01:00
Rename "schema/v1/core" to "schema/v1/core-event-schema". Add self-referential symlinks to schema/v1/core-event-schema The python json schema libraries expect that relative references are relative to the file they are in. The node json schema libraries expect that relateive references are relative to the first file loaded. To support both kinds we reference the core event schema using "core-event-schema/event.json". We then symlink the core-event-schema directory to both the location of the file refering to "event.json" so that it will work in python and to the location of the top level file so that it will work in node.
52 lines
2.1 KiB
Plaintext
52 lines
2.1 KiB
Plaintext
{
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"type": "object",
|
|
"description": "This event is sent by callers after sending an invite and by the callee after answering. Its purpose is to give the other party additional ICE candidates to try using to communicate.",
|
|
"allOf": [{
|
|
"$ref": "core-event-schema/room_event.json"
|
|
}],
|
|
"properties": {
|
|
"content": {
|
|
"type": "object",
|
|
"properties": {
|
|
"call_id": {
|
|
"type": "string",
|
|
"description": "The ID of the call this event relates to."
|
|
},
|
|
"candidates": {
|
|
"type": "array",
|
|
"description": "Array of objects describing the candidates.",
|
|
"items": {
|
|
"type": "object",
|
|
"title": "Candidate",
|
|
"properties": {
|
|
"sdpMid": {
|
|
"type": "string",
|
|
"description": "The SDP media type this candidate is intended for."
|
|
},
|
|
"sdpMLineIndex": {
|
|
"type": "number",
|
|
"description": "The index of the SDP 'm' line this candidate is intended for."
|
|
},
|
|
"candidate": {
|
|
"type": "string",
|
|
"description": "The SDP 'a' line of the candidate."
|
|
}
|
|
},
|
|
"required": ["candidate", "sdpMLineIndex", "sdpMid"]
|
|
}
|
|
},
|
|
"version": {
|
|
"type": "integer",
|
|
"description": "The version of the VoIP specification this messages adheres to. This specification is version 0."
|
|
}
|
|
},
|
|
"required": ["call_id", "candidates", "version"]
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": ["m.call.candidates"]
|
|
}
|
|
}
|
|
}
|