JSON-schema Tillämplighet
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://schemas.infopack.io/100gruppen/rexs.applicability.1.schema.json",
"title": "Applicability",
"description": "A representation of the applicability expressed as a particular category or class under a given classification system.",
"type": "object",
"required": ["applicabilityType", "categoryOrClass", "classificationSystem"],
"properties": {
"applicabilityType": {
"description": "The type of applicability, which can be either 'including' or 'excluding'.",
"type": "string",
"enum": ["including", "excluding"]
},
"categoryOrClass": {
"description": "Describes the category or class to which the applicability applies.",
"type": "string",
"minLength": 1
},
"classificationSystem": {
"description": "Describes the classification system used for the category or class.",
"type": "string",
"default": "internal",
"minLength": 1
},
"publisher": {
"description": "A reference to the organisation schema that defines the publisher of the applicability. Not required when classificationSystem is internal",
"$ref": "http://schemas.infopack.io/100gruppen/rexs.organisation.1.schema.json",
"not": {
"properties": {
"classificationSystem": {
"const": "internal"
}
},
"required": ["publisher"]
}
}
},
"additionalProperties": false
}