JSON-schema Organisation
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://schemas.infopack.io/100gruppen/rexs.organisation.1.schema.json",
"title": "Organisation",
"description": "A representation of an organisation, including its name, language, and associated reference designations.",
"type": "object",
"required": ["organisationsNameAndLanguage"],
"properties": {
"referenceDesignations": {
"description": "An list of reference designations associated with the organisation.",
"type": "array",
"items": {
"$ref": "http://schemas.infopack.io/100gruppen/rexs.reference-designation.1.schema.json"
}
},
"organisationsNameAndLanguage": {
"description": "A list of organisations that include the name and language code for the organisation.",
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"name": {
"description": "The name of the organisation.",
"type": "string",
"minLength": 1
},
"languageCode": {
"description": "The ISO 639-1 language code used for the organization name.",
"type": "string",
"pattern": "^[a-zA-Z]{2}$"
}
},
"required": ["name", "languageCode"]
}
}
},
"additionalProperties": false
}