Files
timmy-config/training-data/schema.json
Alexander Whitestone 96ec3b7141 gemma-4-multimodal: Add JSON schema validation for scene descriptions
- 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
2026-04-21 10:08:07 -04:00

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 }
}
}
}
}