ci: update jsonschema to 0.26.1 for schema validation (#1637)

* ci: update jsonschema to 0.26.1 for schema validation

* make sure to rerun schema validation
This commit is contained in:
Clement Tsang 2024-11-29 15:29:30 -05:00 committed by GitHub
parent 3597e0a9fd
commit 70d0a6cbf7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 2 deletions

View File

@ -9,6 +9,7 @@ on:
- main - main
paths: paths:
- "schema/**" - "schema/**"
- "scripts/schema/**"
- ".github/workflows/validate_schema.yml" - ".github/workflows/validate_schema.yml"
concurrency: concurrency:

View File

@ -1 +1 @@
jsonschema-rs == 0.18.0 jsonschema-rs == 0.26.1

View File

@ -40,7 +40,7 @@ def main():
with open(file, "rb") as f, open(schema) as s: with open(file, "rb") as f, open(schema) as s:
try: try:
validator = jsonschema_rs.JSONSchema.from_str(s.read()) validator = jsonschema_rs.validator_for(s.read())
except: except:
print("Couldn't create validator.") print("Couldn't create validator.")
exit() exit()