Skip to content

protoc-gen-openapi: add Protobuf Editions support - #486

Open
sloretz wants to merge 1 commit into
google:mainfrom
sloretz:editions-support
Open

sloretz wants to merge 1 commit into
google:mainfrom
sloretz:editions-support

Conversation

@sloretz

@sloretz sloretz commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Closes #485

This adds Protobuf Editions support to protoc-gen-openapi by setting FEATURE_SUPPORTS_EDITIONS on the code generator response with supported editions from proto2 to 2023.

Without this, running protoc on proto files that use editions (e.g. edition = "2023";) fails with:

<file>.proto: is an editions file, but code generator protoc-gen-openapi hasn't been updated to support editions yet.

@sloretz sloretz left a comment

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.

Self review: LGTM!

@sloretz
sloretz marked this pull request as ready for review October 28, 2026 20:54
@sloretz
sloretz requested a review from a team as a code owner October 28, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support editions in OpenAPI generator

1 participant