Skip to content

Conversation

@zegl
Copy link
Contributor

@zegl zegl commented Aug 4, 2023

I've read through #38 and got excited to check and see what it would take to add support for Pydantic 2.

The first issue I encountered was that openapi-schema-pydantic only supports Pydantic 1, and hasn't been actively developed for a while. openapi-pydantic is a fork of openapi-schema-pydantic that has been updated with support for both Pydantic 1 and 2, and seems to be more actively maintained.

I might be jumping the gun here, so if this is not the way that you've planned to tackle Pydantic2 support, feel free to close this PR.

Change openapi-schema-pydantic for openapi-pydantic.

openapi-pydantic is a fork of the previously used library, with support for both Pydantic 1 and 2.
@yanyongyu yanyongyu added the enhancement New feature or request label Aug 4, 2023
@yanyongyu yanyongyu changed the title Change to Pydantic 2 compatible openapi schema parser Feature: Change to Pydantic 2 compatible openapi schema parser Aug 4, 2023
@yanyongyu
Copy link
Owner

LGTM. We should change to campatible parser before we can bump pydantic to v2.

@yanyongyu yanyongyu merged commit a4275ac into yanyongyu:master Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants