115 lines
2.6 KiB
JSON
115 lines
2.6 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://worldshaper.local/schemas/request-analysis.schema.json",
|
|
"title": "Worldshaper Request Analysis Result",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"submissionId",
|
|
"sourceText",
|
|
"items"
|
|
],
|
|
"properties": {
|
|
"submissionId": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"sourceText": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"items": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"title",
|
|
"primaryCategory",
|
|
"tags",
|
|
"statusRecommendation",
|
|
"parsedInterpretation",
|
|
"implementationApproach",
|
|
"confidence"
|
|
],
|
|
"properties": {
|
|
"title": {
|
|
"type": "string",
|
|
"minLength": 3,
|
|
"maxLength": 120
|
|
},
|
|
"primaryCategory": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"uniqueItems": true
|
|
},
|
|
"statusRecommendation": {
|
|
"type": "string",
|
|
"enum": [
|
|
"active",
|
|
"needs_review",
|
|
"duplicate",
|
|
"blocked"
|
|
]
|
|
},
|
|
"parsedInterpretation": {
|
|
"type": "string",
|
|
"minLength": 20
|
|
},
|
|
"implementationApproach": {
|
|
"type": "string",
|
|
"minLength": 20
|
|
},
|
|
"affectedSystems": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"uniqueItems": true
|
|
},
|
|
"affectedFiles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"uniqueItems": true
|
|
},
|
|
"problemType": {
|
|
"type": "string",
|
|
"enum": [
|
|
"feature",
|
|
"bug",
|
|
"workflow",
|
|
"performance",
|
|
"ux",
|
|
"content",
|
|
"unknown"
|
|
]
|
|
},
|
|
"rawExcerpt": {
|
|
"type": "string"
|
|
},
|
|
"confidence": {
|
|
"type": "number",
|
|
"minimum": 0,
|
|
"maximum": 1
|
|
},
|
|
"notes": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|