XiaoFeiASK opened a new pull request, #3636: URL: https://github.com/apache/dubbo-go/pull/3636
## What this PR does Part of [#3598](https://github.com/apache/dubbo-go/issues/3598), task 27: support `oneof` fields for `protoc-gen-triple-openapi`. This PR preserves proto `oneof` groups in generated OpenAPI schemas by adding `oneOf` constraints. ## Changes - Add `oneof` handling when converting protobuf messages to OpenAPI schemas. - Skip synthetic oneofs generated for proto3 optional fields. - Generate OpenAPI `oneOf` constraints to represent mutually exclusive oneof fields. - Extend `example/greet.proto` with a oneof field group. - Update YAML and JSON golden outputs. - Add oneof coverage to the existing converter golden test fixture. ## Verification ```bash cd tools/protoc-gen-triple-openapi go test ./... -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
