Define your JSON schema as Python dataclasses
Define your JSON schema as Python dataclasses Installation pip install nvelope The problem it solves This is basically sommething like JSON-schema, but it workswith static type checking, since the classes you define are just regularpython dataclasses which can (and should) be type checked with mypy library. It also lets not to just define the structure of your JSON data in asingle place in yourpython code, but also to definecustom checks and conversions from/to JSON for any type you want. Original […]
Read more