Schema constraint_set.json
Show original (referenced schemas with $ref)
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Describes a Constraint Set",
"minProperties": 1,
"patternProperties": {
"^urn:x-nmos:cap:(?!meta:)": {
"$schema": "http://json-schema.org/draft-04/schema#",
"anyOf": [
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Describes a String Parameter Constraint",
"properties": {
"enum": {
"items": {
"type": "string"
},
"minItems": 1,
"type": "array"
}
},
"title": "String Parameter Constraint",
"type": "object"
},
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Describes an Integer Parameter Constraint",
"properties": {
"enum": {
"items": {
"type": "integer"
},
"minItems": 1,
"type": "array"
},
"maximum": {
"type": "integer"
},
"minimum": {
"type": "integer"
}
},
"title": "Integer Parameter Constraint",
"type": "object"