a framework to extract jsonschema's from a variety of models.
Project description
jsonschema-extractor is a library and extensible framework for extracting json schema from various object and primitives.
Out of the box support exists for:
Usage
from typing import List
import jsonschema_extractor
assert jsonschema_extractor.extract(List[int]) == {
"type": "array",
"items": {"type": "integer"}
}
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
jsonschema-extractor-0.9.tar.gz
(11.4 kB
view hashes)
Built Distribution
Close
Hashes for jsonschema_extractor-0.9-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbedbfd7cbb6572b83aa0709fd692c0289f0439ed65d3aa332fd987784e281d8 |
|
MD5 | d5fa580d4de3142571afb6b929eed291 |
|
BLAKE2b-256 | 22ad6d19b8449064ef747574ec04721628ad3f8160ee947de082af11ec25c3ff |