Files
popki/schemas/profile.schema.json

135 lines
2.8 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "urn:ald-transition:profile",
"type": "object",
"properties": {
"schema_version": {
"const": 1
},
"id": {
"type": "string",
"maxLength": 36,
"format": "uuid"
},
"revision": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"os_constraints": {
"type": "array",
"maxItems": 10000,
"items": {
"type": "string",
"maxLength": 4096
}
},
"role_constraints": {
"type": "array",
"maxItems": 10000,
"items": {
"type": "string",
"maxLength": 4096
}
},
"settings": {
"type": "array",
"maxItems": 1000,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 4096
},
"desired_value": {},
"source_refs": {
"type": "array",
"maxItems": 10000,
"items": {
"type": "string",
"maxLength": 4096
}
},
"management_owner": {
"type": "string",
"maxLength": 4096
},
"applicability": {
"enum": [
"APPLICABLE",
"NOT_APPLICABLE_WITH_REASON",
"UNKNOWN"
]
}
},
"required": [
"id",
"desired_value",
"source_refs",
"management_owner",
"applicability"
],
"additionalProperties": false
}
},
"management_owner": {
"type": "string",
"maxLength": 4096
},
"exceptions": {
"type": "array",
"maxItems": 10000,
"items": {
"type": "object",
"properties": {
"scope": {
"type": "string",
"maxLength": 4096
},
"owner": {
"type": "string",
"maxLength": 4096
},
"reason": {
"type": "string",
"maxLength": 4096
},
"review_date": {
"type": "string",
"maxLength": 40,
"format": "date-time"
}
},
"required": [
"scope",
"owner",
"reason",
"review_date"
],
"additionalProperties": false
}
},
"source_refs": {
"type": "array",
"maxItems": 10000,
"items": {
"type": "string",
"maxLength": 4096
}
}
},
"required": [
"schema_version",
"id",
"revision",
"os_constraints",
"role_constraints",
"settings",
"management_owner",
"exceptions",
"source_refs"
],
"additionalProperties": false
}