My team is using swagger annotation 1.5.14 to generate the swagger file for the documentation, when we define a string property with ApiModelProperty and example:
private String accountNumber;
This generates the output:
Is it possible to make it generate the account number with example value double quoted:
Since it will be easier to tell between string value and number value when look at the example.
Following are we have tried so far:
- put the escape character for double quote (example = "\"484799\"")
- use dataType = "java.lang.String" with example parameter
- Leave extra space in the example value.
My environment: Java 1.8, swagger annotation 1.5.14, swagger 2
Thanks in advance