Skip to content

Commit

Permalink
protoc-gen-openapiv2: fix map field options (#1601) (#1604)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxikun authored Aug 19, 2020
1 parent b3ec641 commit 5adc227
Show file tree
Hide file tree
Showing 2 changed files with 202 additions and 60 deletions.
2 changes: 1 addition & 1 deletion protoc-gen-openapiv2/internal/genopenapi/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ func schemaOfField(f *descriptor.Field, reg *descriptor.Registry, refs refMap) o
}
}

if j, err := extractJSONSchemaFromFieldDescriptor(fd); err == nil {
if j, err := extractJSONSchemaFromFieldDescriptor(f.FieldDescriptorProto); err == nil {
updateswaggerObjectFromJSONSchema(&ret, j, reg, f)
}

Expand Down
Loading

0 comments on commit 5adc227

Please sign in to comment.