Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 584 Bytes

README.rst

File metadata and controls

26 lines (19 loc) · 584 Bytes

jsonschema-extractor

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"}
}