111 lines
2.5 KiB
JSON
111 lines
2.5 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "Domain Scenario Pack",
|
|
"type": "object",
|
|
"additionalProperties": true,
|
|
"required": ["schema_version", "pack_id", "domain", "scenarios"],
|
|
"properties": {
|
|
"schema_version": {
|
|
"const": "domain_scenario_pack_v1"
|
|
},
|
|
"pack_id": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"domain": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"source_contract_id": {
|
|
"type": "string"
|
|
},
|
|
"issue_codes_under_test": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"detectors_under_test": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"rerun_matrix": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"analysis_context": {
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
},
|
|
"acceptance": {
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
},
|
|
"scenarios": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": true,
|
|
"required": ["scenario_id", "steps"],
|
|
"properties": {
|
|
"scenario_id": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"steps": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": true,
|
|
"required": ["step_id", "question"],
|
|
"properties": {
|
|
"step_id": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"question": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"expected_business_answer_contract": {
|
|
"type": "string"
|
|
},
|
|
"semantic_tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"forbidden_answer_patterns": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|