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

Support for advanced schemas (oneof, anyof) #203

Open
Soremwar opened this issue Nov 25, 2024 · 1 comment
Open

Support for advanced schemas (oneof, anyof) #203

Soremwar opened this issue Nov 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Soremwar
Copy link

Not really a bug, but a feature request

Is it possible to have support for schemas such as the one described in the Pydantic documentation. It's possible to achieve this currently by wrapping the values in a BaseModel, however it's not currently possible to have one of this objects at the root

Environment:

  • Python version: 3.12.4
  • Operating system: Windows 11
  • Flask version: 3.1.0
  • flask-openapi3 version: 4.0.3
@Soremwar Soremwar added the bug Something isn't working label Nov 25, 2024
@luolingchun
Copy link
Owner

I don't quite understand what you mean, but I'm guessing RootModel will meet your needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants