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

Let CodeGenerators provide extension for CustomOptions. #1679

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

thomasvl
Copy link
Collaborator

This will get those extensions recognized when the request from protoc is parsed, and then a generator can use the existing SwiftProtobuf extension related apis to access them.

Fixes #1677

@thomasvl
Copy link
Collaborator Author

@gjcairo how's this look for your use case?

@gjcairo
Copy link
Contributor

gjcairo commented Jul 16, 2024

Thanks @thomasvl ! Other than the comment about the missing Google_Protobuf_MessageOptions this looks good :)

This will get those extensions recognized when the request from protoc is
parsed, and then a generator can use the existing SwiftProtobuf extension
related apis to access them.

Fixes apple#1677
@thomasvl thomasvl force-pushed the custom_option_parsing branch from 01b92f5 to 2222bbd Compare July 16, 2024 12:25
@thomasvl thomasvl marked this pull request as ready for review July 16, 2024 12:25
@thomasvl thomasvl requested review from gjcairo and allevato and removed request for gjcairo July 16, 2024 12:25
@thomasvl thomasvl merged commit 601e03a into apple:main Jul 16, 2024
10 checks passed
@thomasvl thomasvl deleted the custom_option_parsing branch July 16, 2024 14:00
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.

New CodeGenerator protocol should allow customising the Google_Protobuf_Compiler_CodeGeneratorRequest
3 participants