From 090e6c521b3b6c30ef44d2851574e653cd853da9 Mon Sep 17 00:00:00 2001 From: Andrew Hitchcock Date: Mon, 9 Dec 2024 18:47:03 -0600 Subject: [PATCH] Better change --- pkg/converter/convert.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/converter/convert.go b/pkg/converter/convert.go index c265b66..9a3bedf 100644 --- a/pkg/converter/convert.go +++ b/pkg/converter/convert.go @@ -408,7 +408,9 @@ func Convert(req *plugin.CodeGeneratorRequest) (*plugin.CodeGeneratorResponse, e } res := &plugin.CodeGeneratorResponse{ - SupportedFeatures: proto.Uint64(uint64(plugin.CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL)), + SupportedFeatures: proto.Uint64(uint64(plugin.CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL | plugin.CodeGeneratorResponse_FEATURE_SUPPORTS_EDITIONS)), + MinimumEdition: proto.Int32(int32(descriptor.Edition_EDITION_PROTO2)), + MaximumEdition: proto.Int32(int32(descriptor.Edition_EDITION_MAX)), } for _, file := range req.GetProtoFile() { for msgIndex, msg := range file.GetMessageType() {