This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://devrunbook.local/schemas/evaluation-case.schema.json",
|
||||
"title": "DevRunbook Evaluation Case",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["apiVersion", "kind", "metadata", "spec"],
|
||||
"properties": {
|
||||
"apiVersion": {"const": "devrunbook.io/v1alpha1"},
|
||||
"kind": {"const": "EvaluationCase"},
|
||||
"metadata": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["id", "version"],
|
||||
"properties": {
|
||||
"id": {"type": "string", "pattern": "^[a-z0-9]+(?:[.-][a-z0-9]+)*$", "maxLength": 160},
|
||||
"version": {"type": "string", "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"}
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["playbookVersion", "inputFile", "expectedHeadings", "prohibitedPatterns", "deterministic"],
|
||||
"properties": {
|
||||
"playbookVersion": {"type": "string", "minLength": 5, "maxLength": 50},
|
||||
"inputFile": {"type": "string", "minLength": 3, "maxLength": 500},
|
||||
"expectedHeadings": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "minLength": 2, "maxLength": 160}},
|
||||
"prohibitedPatterns": {"type": "array", "uniqueItems": true, "items": {"type": "string", "minLength": 2, "maxLength": 300}},
|
||||
"requiredPatterns": {"type": "array", "uniqueItems": true, "items": {"type": "string", "minLength": 2, "maxLength": 300}},
|
||||
"deterministic": {"type": "boolean"},
|
||||
"expectedLintStatus": {"enum": ["ready", "warning", "blocked"]}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user