Skip to content

Commit

Permalink
use GetJsonName for struct names
Browse files Browse the repository at this point in the history
  • Loading branch information
utrack committed Jun 24, 2018
1 parent ee3ef70 commit 6c187a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protoc-gen-swagger/genswagger/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func renderMessagesAsDefinition(messages messageMap, d swaggerDefinitionsObject,
panic(err)
}

schema.Properties = append(schema.Properties, keyVal{f.GetName(), fieldValue})
schema.Properties = append(schema.Properties, keyVal{f.GetJsonName(), fieldValue})
}
d[fullyQualifiedNameToSwaggerName(msg.FQMN(), reg)] = schema
}
Expand Down

0 comments on commit 6c187a9

Please sign in to comment.