mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-04-07 20:35:14 +02:00
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:
parent
3597e0a9fd
commit
70d0a6cbf7
1
.github/workflows/validate_schema.yml
vendored
1
.github/workflows/validate_schema.yml
vendored
@ -9,6 +9,7 @@ on:
|
||||
- main
|
||||
paths:
|
||||
- "schema/**"
|
||||
- "scripts/schema/**"
|
||||
- ".github/workflows/validate_schema.yml"
|
||||
|
||||
concurrency:
|
||||
|
@ -1 +1 @@
|
||||
jsonschema-rs == 0.18.0
|
||||
jsonschema-rs == 0.26.1
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user