We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ffc743 commit 6e5a26bCopy full SHA for 6e5a26b
main.go
@@ -4,6 +4,7 @@ import (
4
"flag"
5
6
"google.golang.org/protobuf/compiler/protogen"
7
+ "google.golang.org/protobuf/types/descriptorpb"
8
"google.golang.org/protobuf/types/pluginpb"
9
10
"github.com/technicallyjosh/protoc-gen-openapi/internal/generator"
@@ -32,6 +33,9 @@ func main() {
32
33
34
opts.Run(func(plugin *protogen.Plugin) error {
35
plugin.SupportedFeatures = uint64(pluginpb.CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL) | uint64(pluginpb.CodeGeneratorResponse_FEATURE_SUPPORTS_EDITIONS)
36
+ plugin.SupportedEditionsMinimum = descriptorpb.Edition_EDITION_PROTO2
37
+ plugin.SupportedEditionsMaximum = descriptorpb.Edition_EDITION_2023
38
+
39
return generator.New(plugin, conf).Run()
40
})
41
}
0 commit comments