Issue #541: Add 'edition' support
The problem was highlighted in #541
What is Changing? The plugin's response has been changed so that its supports working with the edition.
How is it Changing?
The changes are quite simple. Two fields were added to the plugin's response: MinimumEdition and MaximumEdition. Also the SupportedFeatures flag has been changed to CodeGeneratorResponse_FEATURE_SUPPORTS_EDITIONS. An example of simple proto file that use editions added.
What Could Go Wrong?
Perhaps the innovations in the syntax of the message fields will somehow be poorly handled, but in the added simplest example Milk.proto everything works as it should. In addition to this simple example, I can say that on my work project, a large proto file generated the documentation correctly.
@pseudomuto Hello. Can you please review this PR?
@Ekrekr any chance you can give this a review and merge? It seems like a relatively small change to me that would unblock many teams that want to try editions.
I don't have approval rights - @pseudomuto is the right person to tag
@pseudomuto hi, please consider the fix.
@pseudomuto hi, please take a look at this PR
@pseudomuto Hi! It would be great if you could find the time to take a look at this PR.
@pseudomuto Hi, this PR would solve our problem.
@fedor-romanovskii @kveselkov
While waiting, I've created a fork you can use with this PR and additional features (like customizable exclude directive for ignoring comments like //buf:lint:ignore)
https://github.com/daotl/protoc-gen-doc