Skip to content

Conversation

TomGneuss
Copy link
Contributor

The method proto_naming.interface_name was previously unused since ProtoBuf does not support interfaces anyway. It is now used to generate the _choice suffix for message definitions that try to mimic polymorphism with the oneof keyword. This reduces the risk of inconsistent naming when generating the ProtoBuf message definitions.

As part of this PR, comments regarding ProtoBuf intricacies have been refined.

Also, the files for the ProtoBuf test cases have been moved slightly to align with the directory structure of the other generator tests.

Tom Gneuß added 7 commits March 10, 2025 15:42
trying to generate polymorphic protobuf messages leads to the necessary generation of choice messages.
naming them is now moved to the naming.py utilities
the directory structure for the protobuf generator test cases is now aligned with the other generators
bring back the two new lines between protobuf package name and message definitions
align the expected output of the protobuf generator with the latest version of aas-core-meta
@mristin
Copy link
Contributor

mristin commented Jul 14, 2025

@TomGneuss do you happen to remember why we decided not to merge this PR?

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.

2 participants