Reputation: 139
I am generating from swagger through annotations. One of the response model attribute is int. Json schema shows it as "totalResults":{ "type":"integer", "format":"int32" } I would like to remove the format from the swagger.
As per swagger specification doc the integer can have 3 formats "-", "int32" and "int64" Swagger definition snippet
Is there anyway to remove the format or force format type "-". I tried @ApiModelProperty annotation which does show option for dataType but nothing for format. I do not know how to set the format.
Upvotes: 0
Views: 2017
Reputation: 139
Looks like dredd v13 has this issue. Downgrading dredd to version 12 resolved the format int32 issue. Now Dredd accepts the given swagger 2 specification.
Upvotes: 1