Skip to content

Commit

Permalink
ci: update jsonschema to 0.26.1 for schema validation (#1637)
Browse files Browse the repository at this point in the history
* ci: update jsonschema to 0.26.1 for schema validation

* make sure to rerun schema validation
  • Loading branch information
ClementTsang authored Nov 29, 2024
1 parent 3597e0a commit 70d0a6c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/validate_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- main
paths:
- "schema/**"
- "scripts/schema/**"
- ".github/workflows/validate_schema.yml"

concurrency:
Expand Down
2 changes: 1 addition & 1 deletion scripts/schema/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
jsonschema-rs == 0.18.0
jsonschema-rs == 0.26.1
2 changes: 1 addition & 1 deletion scripts/schema/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def main():

with open(file, "rb") as f, open(schema) as s:
try:
validator = jsonschema_rs.JSONSchema.from_str(s.read())
validator = jsonschema_rs.validator_for(s.read())
except:
print("Couldn't create validator.")
exit()
Expand Down

0 comments on commit 70d0a6c

Please sign in to comment.