Description
See swagger-ui issue 644.
I propose that the Swagger 2.0 specification be revised around the use of types. Currently
it reads
Primitives have an optional modifier property format.
but this is imprecise. format is optional for some types but in the current implementation is it required for others. That is, "type" : "integer" is insufficient; one must specify "format" : "int32" or "format" : "int64" as well.
I propose that this be simplified to just
"type" : "integer"
or
"type" : "long"
Having to specify two fields to define the type of an integer property/field is tedious and unnecessarily verbose. It adds dozens of lines to a typical swagger spec (either yaml or json),
Similarly, it makes sense to allow the other "common names" for the value of "type" as an alias for type+format.
I think this would make Swagger 2.0 easier to use for all users.