Skip to content

Open-API: Bump to OpenAPI 3.1 - #11955

Merged
Fokko merged 1 commit into
apache:mainfrom
Fokko:fd-openapi-31
Jan 14, 2025
Merged

Fokko merged 1 commit into
apache:mainfrom
Fokko:fd-openapi-31

Conversation

@Fokko

@Fokko Fokko commented Jan 13, 2025

Copy link
Copy Markdown
Contributor

Comment on lines +135 to +137
type: ExpressionType = Field(
default_factory=lambda: ExpressionType.parse_obj('true'), const=True
)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It makes sense to do it in another PR (not related to the update).

Comment on lines +135 to +137
type: ExpressionType = Field(
default_factory=lambda: ExpressionType.parse_obj('true'), const=True
)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It makes sense to do it in another PR (not related to the update).

@hussein-awala hussein-awala left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one, LGTM!

@Fokko
Fokko merged commit 8cd5b19 into apache:main Jan 14, 2025
@Fokko

Fokko commented Jan 14, 2025

Copy link
Copy Markdown
Contributor Author

Thanks @jbonofre, @nastra and @hussein-awala for the review 🙌

@Fokko
Fokko deleted the fd-openapi-31 branch January 14, 2025 19:10
nastra added a commit that referenced this pull request Jan 15, 2025
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants