Knot0 JSON Schemas and validation (Python)
Project description
knot0-schemas (Python)
Simple helpers to load Knot0 v2 JSON Schemas from the monorepo and validate manifests.
Usage
# Build schemas first
node knot0-src/schemas-v2/scripts/build.mjs
from knot0_schemas import validator
ok, errors = validator.validate('Component', {
'kind': 'Component',
'schema_version': '2.0',
'metadata': {'name': 'hello'},
'contract': {},
'body': {'execution': {'runner': 'python', 'run': 'print(1)'}}
})
print(ok, errors)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
knot0_schemas-2.0.34.tar.gz
(1.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file knot0_schemas-2.0.34.tar.gz.
File metadata
- Download URL: knot0_schemas-2.0.34.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b85a2073ddb629c74ac2e5a5b13d24d05c84c3606d78f4a2eaa7cb95704a3537
|
|
| MD5 |
c4ff2dc04635493e1e3fbf3e040fa4e2
|
|
| BLAKE2b-256 |
35ce906ff0f62318108eb0365e97d7d6a94fb2cf81d64edd1c62c0aebc42104f
|
File details
Details for the file knot0_schemas-2.0.34-py3-none-any.whl.
File metadata
- Download URL: knot0_schemas-2.0.34-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce104cef113c0d5a6a9ba3574f3c3226d3124e8788ca101fc0e4dd875af18cb1
|
|
| MD5 |
2f3ed6fa3c842838acd3ee7cb87ded32
|
|
| BLAKE2b-256 |
6ae86892556269184fa04d813c2b2563b4153f0480bec0e1ddd67a623ad26bb6
|