pydantic / pydantic

Data validation using Python type hints
https://docs.pydantic.dev
MIT License
20.63k stars 1.85k forks source link

Add `jsonschema` as a testing dependency for validating the JSON schemas we generate #5164

Open dmontagu opened 1 year ago

dmontagu commented 1 year ago

@samuelcolvin Would you be open to adding jsonschema as a testing dependency for the sake of validating generated schemas? I like the idea, if for no other reason than making sure we recognize if/when we make a change that isn't compatible with whatever draft we target (i.e., 2020-12 for now).

yup, fine by me.

See https://github.com/pydantic/pydantic/issues/5051#issuecomment-1462842500 for context

dmontagu commented 1 year ago

(Treating this as lower priority than other pre-v2-release stuff, but created the issue / assigned myself for track purposes.)