Files
popki/schemas/operation.schema.json
T

81 lines
1.5 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "urn:ald-transition:operation",
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 128
},
"adapter_id": {
"type": "string",
"maxLength": 128
},
"adapter_version": {
"type": "string",
"maxLength": 64
},
"target_id": {
"type": "string",
"maxLength": 128
},
"typed_parameters": {
"type": "object",
"additionalProperties": true
},
"preconditions": {
"type": "array",
"maxItems": 10000,
"items": {
"type": "string",
"maxLength": 4096
}
},
"effects": {
"type": "array",
"maxItems": 10000,
"items": {
"type": "string",
"maxLength": 4096
}
},
"cancellation_class": {
"enum": [
"READ_ONLY_TERMINATE",
"SAFE_BOUNDARY",
"NOT_CANCELLABLE"
]
},
"recovery_class": {
"enum": [
"NONE",
"RECONCILE",
"REBOOT_REQUIRED",
"RESTORE_BACKUP",
"MANUAL"
]
},
"postconditions": {
"type": "array",
"maxItems": 10000,
"items": {
"type": "string",
"maxLength": 4096
}
}
},
"required": [
"id",
"adapter_id",
"adapter_version",
"target_id",
"typed_parameters",
"preconditions",
"effects",
"cancellation_class",
"recovery_class",
"postconditions"
],
"additionalProperties": false
}