Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a schema_hook for generating JSON schemas #605

Merged
merged 1 commit into from
Dec 7, 2023
Merged

Commits on Dec 7, 2023

  1. Add a schema_hook for generating JSON schemas

    Previously custom types needed to be annotated with
    `Meta(extra_json_schema=...)` to be supported in `msgspec.json.schema`.
    This adds a new `schema_hook` which supports generating json schemas for
    custom types without requiring an extra annotation.
    jcrist committed Dec 7, 2023
    Configuration menu
    Copy the full SHA
    74349bd View commit details
    Browse the repository at this point in the history