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 support for Pydantic V2 x OpenAPI 3 #22

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Sep 26, 2024

  1. Add support for Pydantic V2 x OpenAPI 3

    Pydantic V2 uses `$defs` key in its schema.
    Ali-Toosi authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    5135a0d View commit details
    Browse the repository at this point in the history
  2. Fix tests to use an empty model instead of BaseModel

    Cannot call schema directly on BaseModel in Pydantic V2
    Ali-Toosi authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    3f85bae View commit details
    Browse the repository at this point in the history
  3. Use EmptyModel instead of BaseModel

    Cannot call schema directly on BaseModel in Pydantic V2
    Ali-Toosi authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    93997c7 View commit details
    Browse the repository at this point in the history