37 lines
1.5 KiB
JSON
37 lines
1.5 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://devrunbook.local/schemas/rendered-prompt-manifest.schema.json",
|
|
"title": "DevRunbook Rendered Prompt Fixture Manifest",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["schemaVersion", "generatorVersion", "canonicalHeadings", "count", "fixtures"],
|
|
"properties": {
|
|
"schemaVersion": {"const": 1},
|
|
"generatorVersion": {"type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"},
|
|
"canonicalHeadings": {
|
|
"type": "array",
|
|
"minItems": 11,
|
|
"uniqueItems": true,
|
|
"items": {"type": "string", "minLength": 1}
|
|
},
|
|
"count": {"type": "integer", "minimum": 1},
|
|
"fixtures": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["slug", "playbookVersion", "exampleFile", "repositoryProfileFile", "generatorVersion", "sizeBytes", "sha256"],
|
|
"properties": {
|
|
"slug": {"type": "string", "pattern": "^[a-z][a-z0-9-]*$"},
|
|
"playbookVersion": {"type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"},
|
|
"exampleFile": {"type": "string", "minLength": 1},
|
|
"repositoryProfileFile": {"type": ["string", "null"]},
|
|
"generatorVersion": {"type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"},
|
|
"sizeBytes": {"type": "integer", "minimum": 1},
|
|
"sha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|