mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-25 22:55:06 +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
|
- main
|
||||||
paths:
|
paths:
|
||||||
- "schema/**"
|
- "schema/**"
|
||||||
|
- "scripts/schema/**"
|
||||||
- ".github/workflows/validate_schema.yml"
|
- ".github/workflows/validate_schema.yml"
|
||||||
|
|
||||||
concurrency:
|
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:
|
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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user