'how to remove dataType "int32" from the swagger definition for an integer attribute

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.



Solution 1:[1]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 np10