JSON-schema Objektegenskap
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://schemas.infopack.io/100gruppen/rexs.object-property.1.schema.json",
"description": "A schema representing an object property, which contains a name, measure, unit, relational operator, and value.",
"title": "Object Property",
"type": "object",
"required": ["name", "measure", "unit", "relational_operator", "value"],
"properties": {
"identity": {
"description": "The identity of the object property.",
"type": "string",
"minLength": 1
},
"name": {
"description": "The name of the object property.",
"type": "string",
"minLength": 1
},
"measure": {
"description": "The measure of the object property.",
"type": "string",
"minLength": 1
},
"unit": {
"description": "The unit of the object property.",
"type": "string",
"minLength": 1
},
"relationalOperator": {
"description": "The relational operator for this object property.",
"type": "string",
"enum": [
"equal to",
"not equal to",
"greater than",
"less than",
"greater than or equal to",
"less than or equal to"
]
},
"value": {
"description": "The value of the object property.",
"type": "number"
}
},
"additionalProperties": false
}