Repository navigation
Open-API: Bump to OpenAPI 3.1 - #11955
Merged
Merged
Conversation
The `const` has been added in Open API 3.1: https://www.speakeasy.com/openapi/schemas/enums#constants-for-single-value-enums This seems to fix the compilation issue reported in apache#11806 as well.
Fokko
commented
Jan 13, 2025
Comment on lines
+135
to
+137
| type: ExpressionType = Field( | ||
| default_factory=lambda: ExpressionType.parse_obj('true'), const=True | ||
| ) |
Contributor
Author
There was a problem hiding this comment.
This still looks a bit odd, but I think we can refactor this by inlining the ExpressionType, but I didn't want to do that in this PR. I think this is better than before.
Member
There was a problem hiding this comment.
It makes sense to do it in another PR (not related to the update).
nastra
approved these changes
Jan 13, 2025
jbonofre
approved these changes
Jan 13, 2025
Comment on lines
+135
to
+137
| type: ExpressionType = Field( | ||
| default_factory=lambda: ExpressionType.parse_obj('true'), const=True | ||
| ) |
Member
There was a problem hiding this comment.
It makes sense to do it in another PR (not related to the update).
Contributor
Author
|
Thanks @jbonofre, @nastra and @hussein-awala for the review 🙌 |
nastra
pushed a commit
that referenced
this pull request
Oct 19, 2026
AssertViewUUID is the only schema the ViewRequirement discriminator maps to, but it does not say it is an object. OpenAPI requires a discriminator target to be an object schema or an allOf, so tools cannot tell what this schema is. This looks like a leftover from #11955. The wire format and the meaning of the schema do not change, and the generated Python code is unchanged.
danielcweeks
pushed a commit
to danielcweeks/iceberg
that referenced
this pull request
Oct 19, 2026
AssertViewUUID is the only schema the ViewRequirement discriminator maps to, but it does not say it is an object. OpenAPI requires a discriminator target to be an object schema or an allOf, so tools cannot tell what this schema is. This looks like a leftover from apache#11955. The wire format and the meaning of the schema do not change, and the generated Python code is unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
consthas been added in Open API 3.1:https://www.speakeasy.com/openapi/schemas/enums#constants-for-single-value-enums
This fixes the compilation issue reported in #11806 as well.
cc @VladimirYushkevich @jbonofre @amogh-jahagirdar @nastra @ajantha-bhat