davsclaus opened a new pull request, #3355: URL: https://github.com/apache/camel-kamelets/pull/3355
Follows [CAMEL-27377](https://issues.apache.org/jira/browse/CAMEL-27377), merged on Camel main for 4.24.0. It gives a clear error for a `.proto` import that is not a Google well-known type that Wire ships. ## Change In protobuf-message-action, "Good to know" now names the imports that work exactly: - `any.proto`, `descriptor.proto`, `duration.proto`, `empty.proto`, `struct.proto`, `timestamp.proto` and `wrappers.proto` under `google/protobuf/`; - not `field_mask.proto`, because Wire 6.4.7 does not ship it. It also says that any other import, such as `shop/common.proto`, fails at startup with a message that names it, and that its types go into the schema itself. ## Checked Checked by hand with `camel run` on 4.24.0-SNAPSHOT, with a schema that imports a file: - `import "shop/common.proto";`: > Failed to start route: protobuf-message-action-1 ... because: java.lang.IllegalArgumentException: Cannot read the protobuf schema: it imports shop/common.proto, but only the well-known types of google/protobuf can be imported (any.proto, descriptor.proto, duration.proto, empty.proto, struct.proto, timestamp.proto and wrappers.proto): put the types of shop/common.proto in the schema itself - `import "google/protobuf/field_mask.proto";`: > Cannot read the protobuf schema: it imports google/protobuf/field_mask.proto, but only the well-known types of google/protobuf can be imported (any.proto, descriptor.proto, duration.proto, empty.proto, struct.proto, timestamp.proto and wrappers.proto): put the types of google/protobuf/field_mask.proto in the schema itself - `import "google/protobuf/timestamp.proto";` with a `google.protobuf.Timestamp` field: starts, and builds a `com.google.protobuf.DynamicMessage`. No upgrade note: only the description changes. _Claude Code on behalf of Claus Ibsen_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9 -- 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]
