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 212aa13 commit a7dbd77Copy full SHA for a7dbd77
protoc-gen-openapiv2/internal/genopenapi/generator.go
@@ -433,7 +433,9 @@ func (so openapiSwaggerObject) sortPathsAlphabetically() {
433
func AddErrorDefs(reg *descriptor.Registry) error {
434
// load internal protos
435
any := protodesc.ToFileDescriptorProto((&anypb.Any{}).ProtoReflect().Descriptor().ParentFile())
436
+ any.SourceCodeInfo = new(descriptorpb.SourceCodeInfo)
437
status := protodesc.ToFileDescriptorProto((&statuspb.Status{}).ProtoReflect().Descriptor().ParentFile())
438
+ status.SourceCodeInfo = new(descriptorpb.SourceCodeInfo)
439
return reg.Load(&pluginpb.CodeGeneratorRequest{
440
ProtoFile: []*descriptorpb.FileDescriptorProto{
441
any,
0 commit comments