Skip to content

Commit

Permalink
Add generate schema script
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-lloyd committed Oct 3, 2024
1 parent 692c5c8 commit 6db06b2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ceda_status_validator/generate_schema.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from model import StatusPage
import json

schema = StatusPage.model_json_schema()

with open("generated_schema.json", "w") as out_file:
out_file.write(json.dumps(schema, indent=2))

0 comments on commit 6db06b2

Please sign in to comment.