-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathimplementations.schema.json
More file actions
183 lines (183 loc) · 5.86 KB
/
Copy pathimplementations.schema.json
File metadata and controls
183 lines (183 loc) · 5.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "MoQT Implementations Registry",
"description": "Configuration file defining MoQT implementations available for interop testing",
"type": "object",
"required": ["version", "implementations"],
"properties": {
"$schema": {
"type": "string",
"description": "JSON Schema reference"
},
"version": {
"type": "string",
"description": "Schema version",
"pattern": "^\\d+\\.\\d+$"
},
"description": {
"type": "string"
},
"current_target": {
"type": "string",
"description": "Current interop target draft version (e.g., draft-14)",
"pattern": "^draft-\\d+$"
},
"implementations": {
"type": "object",
"description": "Map of implementation ID to implementation details",
"propertyNames": {
"pattern": "^[a-z][a-z0-9-]*$"
},
"additionalProperties": {
"$ref": "#/definitions/implementation"
}
},
"_comment_how_to_add": {
"type": "array",
"description": "Instructions for adding new implementations",
"items": { "type": "string" }
}
},
"definitions": {
"implementation": {
"type": "object",
"required": ["name", "roles"],
"properties": {
"name": {
"type": "string",
"description": "Human-readable name of the implementation"
},
"organization": {
"type": "string",
"description": "Organization or maintainer"
},
"repository": {
"type": "string",
"format": "uri",
"description": "Source code repository URL"
},
"draft_versions": {
"type": "array",
"items": {
"type": "string",
"pattern": "^draft-\\d+$"
},
"minItems": 1,
"description": "Supported MoQ Transport draft versions (e.g., ['draft-14'])"
},
"roles": {
"type": "object",
"description": "Roles this implementation can fulfill",
"properties": {
"relay": { "$ref": "#/definitions/role_config" },
"client": { "$ref": "#/definitions/role_config" },
"publisher": { "$ref": "#/definitions/role_config" },
"subscriber": { "$ref": "#/definitions/role_config" }
},
"additionalProperties": false
},
"notes": {
"type": "string",
"description": "Additional notes about this implementation"
}
},
"additionalProperties": false
},
"role_config": {
"type": "object",
"description": "Configuration for running this implementation in a specific role",
"properties": {
"docker": {
"$ref": "#/definitions/docker_config"
},
"remote": {
"type": "array",
"description": "Array of remote endpoints (supports multiple transports)",
"items": {
"$ref": "#/definitions/remote_endpoint"
}
}
},
"additionalProperties": false
},
"docker_config": {
"type": "object",
"description": "Docker image configuration",
"required": ["image"],
"properties": {
"image": {
"type": "string",
"description": "Docker image name:tag"
},
"url": {
"type": "string",
"pattern": "^(https://|moqt://)[a-zA-Z0-9][a-zA-Z0-9.-]*(:[0-9]+)?(/.*)?$",
"description": "Optional relay URL to pass to clients for docker-compose tests (overrides default RELAY_URL)"
},
"build": {
"type": "object",
"description": "Build configuration if image needs to be built locally",
"properties": {
"dockerfile": {
"type": "string",
"description": "Path to Dockerfile relative to docker/ directory"
},
"context": {
"type": "string",
"description": "Build context path relative to docker/ directory"
}
}
},
"upstream_image": {
"type": "string",
"description": "Original upstream image if this is an adapter"
},
"env": {
"type": "object",
"description": "Environment variables to set",
"additionalProperties": { "type": "string" }
},
"notes": {
"type": "string",
"description": "Additional notes about this Docker configuration"
}
}
},
"remote_endpoint": {
"type": "object",
"description": "Remote endpoint configuration for testing against public instances",
"required": ["url", "transport"],
"properties": {
"url": {
"type": "string",
"pattern": "^(https://|moqt://)[a-zA-Z0-9][a-zA-Z0-9.-]*(:[0-9]+)?(/.*)?$",
"description": "Endpoint URL (must use https:// or moqt:// with valid host)"
},
"transport": {
"type": "string",
"enum": ["quic", "webtransport"],
"description": "Intended transport independent of URL scheme: 'quic' or 'webtransport'"
},
"status": {
"type": "string",
"enum": ["active", "inactive", "untested"],
"description": "Endpoint availability: 'active' (running, testable), 'inactive' (not currently available), 'untested' (unknown)",
"default": "active"
},
"draft_version": {
"type": "string",
"description": "Specific draft version this endpoint targets (if different from implementation default)"
},
"tls_disable_verify": {
"type": "boolean",
"description": "Set true if endpoint uses self-signed certificate",
"default": false
},
"notes": {
"type": "string",
"description": "Additional notes about this endpoint"
}
}
}
}
}