JSON Schema definitions for all pipeline handover contracts including issue analysis, research, enhancement, and sync flows. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
87 lines
1.9 KiB
JSON
87 lines
1.9 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "GitHub Issue Analysis",
|
|
"description": "Schema for GitHub issue quality analysis results",
|
|
"type": "object",
|
|
"required": ["repository", "total_issues", "poor_quality_issues"],
|
|
"properties": {
|
|
"repository": {
|
|
"type": "object",
|
|
"required": ["owner", "name"],
|
|
"properties": {
|
|
"owner": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
}
|
|
},
|
|
"total_issues": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"analyzed_count": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"poor_quality_issues": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"required": ["number", "title", "quality_score", "problems"],
|
|
"properties": {
|
|
"number": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"body": {
|
|
"type": "string"
|
|
},
|
|
"quality_score": {
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 100
|
|
},
|
|
"problems": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"recommendations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"labels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"url": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"quality_threshold": {
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 100
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
}
|
|
}
|