Skip to content

Commit cca1677

Browse files
alabouAlain Bouchard
andauthored
Fixes for ipmx testing (#137)
* match JSON schemas with sender capabilities * fix namespace to match bcp-004-02 --------- Co-authored-by: Alain Bouchard <[email protected]>
1 parent ec6f27c commit cca1677

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

APIs/schemas/constraint_set.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,21 @@
2323
}
2424
},
2525
"patternProperties": {
26-
"^urn:x-nmos:cap:(?!meta:)": {
26+
"^urn:[a-z0-9][a-z0-9-]+:cap:(?!meta:)": {
2727
"$ref": "param_constraint.json"
28-
}
28+
},
29+
"^urn:(?!x-nmos)[a-z0-9][a-z0-9-]+:cap:meta:": {
30+
"oneOf": [
31+
{
32+
"type": [ "boolean", "integer", "number", "string", "null" ]
33+
},
34+
{
35+
"type": "array",
36+
"items": {
37+
"type": [ "boolean", "integer", "number", "string" ]
38+
}
39+
}
40+
]
41+
}
2942
}
3043
}

APIs/schemas/constraints_supported.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
]
2929
},
3030
{
31-
"pattern": "^urn:x-nmos:cap:"
31+
"pattern": "^urn:[a-z0-9][a-z0-9-]+:cap:"
3232
}
3333
]
3434
},

0 commit comments

Comments
 (0)