Rohit Krishnan
09/18/2023, 4:55 PMProtobuf enum value .some.package.ENUM has no value ENUM_VALUE
The issue occurs if there are multiple top-level enums with the same package name across different files. The good news is I have a pull-request fix for this. As a process question - Should I just create a PR or do I need to file an issue as well?
The technical reason is that in utils.rs, it only calls find_enum_by_name_in_message
on the first message that matches the package name. In my case I have multiple of these, so the find_enum_by_name
method returns None. The solution is to iterate through each of the messages that have the matching package and call find_enum_by_name_in_message
for each of those.Yousaf Nabi (pactflow.io)
Rohit Krishnan
09/18/2023, 5:49 PMRohit Krishnan
09/18/2023, 8:14 PMMatt (pactflow.io / pact-js / pact-go)