- training-data/schema.json: JSON Schema for scene description data (backwards compatible with existing old format) - scripts/validate-scene-data.py: Validation script that normalizes old format - .gitea/workflows/validate-scene-data.yml: CI validation on PRs Acceptance: - Schema validates all existing and new data files - Validation script runs successfully on all JSONL files - CI workflow configured for automated checking
34 lines
895 B
JSON
34 lines
895 B
JSON
{ "$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "SceneDescription",
|
|
"type": "object",
|
|
"required": ["song", "beat", "lyric_line", "scene"],
|
|
"properties": {
|
|
"song": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"beat": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"lyric_line": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"scene": {
|
|
"type": "object",
|
|
"required": ["mood", "colors", "composition", "camera", "description"],
|
|
"properties": {
|
|
"mood": { "type": "string", "minLength": 1 },
|
|
"colors": {
|
|
"type": "array",
|
|
"items": { "type": "string" },
|
|
"minItems": 1
|
|
},
|
|
"composition": { "type": "string", "minLength": 1 },
|
|
"camera": { "type": "string", "minLength": 1 },
|
|
"description": { "type": "string", "minLength": 1 }
|
|
}
|
|
}
|
|
}
|
|
} |