mirror of
https://github.com/openwrt/packages.git
synced 2026-04-22 11:38:43 +04:00
python-jsonschema-specifications: Add new package
From the README: JSON support files from the JSON Schema Specifications (metaschemas, vocabularies, etc.), packaged for runtime access from Python as a referencing-based Schema Registry. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
committed by
Tianling Shen
parent
728aac31bb
commit
ebb69c5c17
12
lang/python/python-jsonschema-specifications/test.sh
Normal file
12
lang/python/python-jsonschema-specifications/test.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ "$1" = python3-jsonschema-specifications ] || exit 0
|
||||
|
||||
python3 - << 'EOF'
|
||||
|
||||
from jsonschema_specifications import REGISTRY as SPECIFICATIONS
|
||||
|
||||
DRAFT202012_DIALECT_URI = "https://json-schema.org/draft/2020-12/schema"
|
||||
assert SPECIFICATIONS.contents(DRAFT202012_DIALECT_URI) != ""
|
||||
|
||||
EOF
|
||||
Reference in New Issue
Block a user