JSON-schema Publiceringsstatus
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://schemas.infopack.io/100gruppen/rexs.publication-status.1.schema.json",
"title": "Publication Status",
"description": "A representation of the publication status of an information object, including whether it is published or unpublished and optional dates that define its validity.",
"type": "object",
"required": ["publicationFlag"],
"properties": {
"publicationFlag": {
"description": "The flag that indicates whether an information object is published or unpublished.",
"type": "string",
"enum": ["published", "unpublished"]
},
"validFrom": {
"description": "The date from which an information object is valid.",
"type": "string",
"format": "date",
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
},
"validUntil": {
"description": "The date until which an information object is valid.",
"type": "string",
"format": "date",
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
}
},
"additionalProperties": false
}
Relaterad information
Detaljer om Publiceringsstatus