Skip to content
Discussion options

You must be logged in to vote

@toppk as @dmontagu , tuples with exact values inside are explicitly unsupported by OpenAPI (there are notes stating that in the spec).

So, yeah, I think the best you can do is something like what @dmontagu suggests. Or better, if you can, make it a Pydantic model with 2 fields. It would also probably be a lot easier to use for your API users.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tiangolo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants
Converted from issue

This discussion was converted from issue #466 on February 28, 2023 11:53.