NODEDC_1C/docs/orchestration/schemas/business_answer_contract.sc...

82 lines
1.8 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Business Answer Contract",
"type": "object",
"additionalProperties": true,
"required": ["schema_version", "contract_id", "domain", "answer_surface", "detectors"],
"properties": {
"schema_version": {
"const": "business_answer_contract_v1"
},
"contract_id": {
"type": "string",
"minLength": 1
},
"domain": {
"type": "string",
"minLength": 1
},
"title": {
"type": "string"
},
"purpose": {
"type": "string"
},
"answer_surface": {
"type": "object",
"additionalProperties": true,
"required": ["required_fields"],
"properties": {
"must_start_with": {
"type": "string"
},
"required_fields": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": true,
"required": ["field", "meaning"],
"properties": {
"field": {
"type": "string",
"minLength": 1
},
"meaning": {
"type": "string",
"minLength": 1
}
}
}
},
"must_not_contain": {
"type": "array",
"items": {
"type": "string"
}
},
"limited_answer_rule": {
"type": "string"
}
}
},
"root_layers": {
"type": "array",
"items": {
"type": "string"
}
},
"detectors": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
},
"acceptance": {
"type": "object",
"additionalProperties": true
}
}
}