Hello,
We're trying to use swagger, and its all working but we're noticing that the name of the field isn't showing up. Is there a basic template setting to use to expose that automatically? And if not what is the standard to do that?
We're getting all the below elements except the name which might not exist, but can't seem to get the field name automatically, before we start writing value="FieldName:productId - the product id" in the @ApiModelProperty, i thought i'd ask.
<tr>
<td>{{#name}}{{{name}}}{{/name}}{{^name}}-{{/name}}</td> /// <-- Something like this we're expecting maybe?
<td>{{#linkType}}<a href="#{{linkType}}">{{type}}</a>{{/linkType}}{{^linkType}}{{type}}{{/linkType}}</td>
<td>{{#required}}required{{/required}}{{^required}}optional{{/required}}</td>
<td>{{#access}}{{{access}}}{{/access}}{{^access}}-{{/access}}</td>
<td>{{#description}}{{{description}}}{{/description}}{{^description}}-{{/description}}</td>
<td>{{#allowableValue}}{{.}}{{/allowableValue}}</td>
<!--
<td>{{#notes}}{{{notes}}}{{/notes}}{{^notes}}-{{/notes}}</td>
-->
</tr>
we're using the maven plugin.
My thought would be that a swagger implementation would do its best to get a field name and allow you to override that if need be.
Very new to understanding this.