mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
8a03d22b9a
- Add Pydantic models for all 6 main data files: - bible_metadata.json - word_studies.json - study_guides.json - verse_commentary.json - featured_verses.json - resource_slugs.json - Add BookIntroduction schema for book JSON files - Create scripts/validate_data.py: - Validates JSON data using Pydantic models - Can generate JSON schemas from Pydantic models - CLI with --verbose and --generate-schemas flags - Add test suite (tests/test_data_validation.py): - 12 tests validating data file structure - Parametrized tests for all data files - Integrated into existing test suite All validation tests pass. JSON schemas auto-generated from Pydantic models. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
46 lines
1.1 KiB
JSON
46 lines
1.1 KiB
JSON
{
|
|
"$defs": {
|
|
"VerseCommentaryEntry": {
|
|
"description": "Schema for verse commentary entry",
|
|
"properties": {
|
|
"analysis": {
|
|
"minLength": 1,
|
|
"title": "Analysis",
|
|
"type": "string"
|
|
},
|
|
"historical_context": {
|
|
"minLength": 1,
|
|
"title": "Historical Context",
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"title": "Application",
|
|
"type": "string"
|
|
},
|
|
"questions": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"minItems": 1,
|
|
"title": "Questions",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"analysis",
|
|
"historical_context",
|
|
"application",
|
|
"questions"
|
|
],
|
|
"title": "VerseCommentaryEntry",
|
|
"type": "object"
|
|
}
|
|
},
|
|
"additionalProperties": {
|
|
"$ref": "#/$defs/VerseCommentaryEntry"
|
|
},
|
|
"description": "Schema for verse_commentary.json",
|
|
"title": "Schema for verse_commentary.json",
|
|
"type": "object",
|
|
"$id": "https://kjvstudy.org/schemas/verse_commentary.schema.json"
|
|
} |