😏
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"title": "Fresh-context integrated diff review",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"verdict": {"type": "string", "enum": ["pass", "concerns", "fail", "blocked"]},
|
||||
"findings": {
|
||||
"type": "array",
|
||||
"maxItems": 50,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"severity": {"type": "string", "enum": ["critical", "high", "medium", "low", "note"]},
|
||||
"location": {"type": "string", "minLength": 1},
|
||||
"claim": {"type": "string", "minLength": 1},
|
||||
"evidence": {"type": "string", "minLength": 1},
|
||||
"correction": {"type": "string", "minLength": 1}
|
||||
},
|
||||
"required": ["severity", "location", "claim", "evidence", "correction"]
|
||||
}
|
||||
},
|
||||
"commands": {
|
||||
"type": "array",
|
||||
"maxItems": 20,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"command": {"type": "string", "minLength": 1},
|
||||
"exit_code": {"type": "integer"},
|
||||
"observation": {"type": "string", "minLength": 1}
|
||||
},
|
||||
"required": ["command", "exit_code", "observation"]
|
||||
}
|
||||
},
|
||||
"blockers": {"type": "array", "items": {"type": "string"}, "maxItems": 20}
|
||||
},
|
||||
"required": ["verdict", "findings", "commands", "blockers"],
|
||||
"allOf": [
|
||||
{"if": {"properties": {"verdict": {"const": "pass"}}, "required": ["verdict"]}, "then": {"properties": {"findings": {"maxItems": 0}, "blockers": {"maxItems": 0}}}},
|
||||
{"if": {"properties": {"verdict": {"const": "blocked"}}, "required": ["verdict"]}, "then": {"properties": {"blockers": {"minItems": 1}}}}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user