Open mxrch opened 2 years ago
Thanks @mxrch for the issue. This isn't an officially supported Google product as mentioned in the README, and it is used for very specific purposes atm. I've downgraded to P3 with that in mind.
@vam-google any thoughts on this?
For technical reasons, we cannot support arbitrary Any
fields. However, we intend to support Any
fields where the concrete types at run-tmie are only one of the types that occur in error_details.proto
and when these Any
fields only occur (at conversion time) within error.details
fields. PR #102 is implementing this functionality.
Environment details
Steps to reproduce
java -jar disco-to-proto3-converter-0.0.1-SNAPSHOT-jar-with-dependencies.jar --discovery_doc_path=people-pa-v2.json --output_file_path=people-pa-v2.proto
I had 2 main errors : 1) The first one is that it doesn't like the type "ANY", it doesn't seems very popular, another discovery documents parser had the same error.. so as a workaround I changed it to a string, just to see if it pass The full error :
2) Then, it doesn't like the "people_pa" because it's not in camel case, understable we can change it even if it's from official APIs :
But then, it gives the same error on "context.consistencyOptions.levelOptions.exactTimestamp" and a lot of other ones, each time it has at least one dot in it:
It only pass if I remove all the dots from the concerned identifier !