{type: number, format: int32} is not ideal OAS 3.0.3, as it defines a format which should be an integer, but uses type: number when the type: integer should be used.
As it is ambiguous, the validator should emit an error of some sort, as openapi tools are very likely to either ignore either type or format, or fail when trying to combined the two.
{type: number, format: int32}
is not ideal OAS 3.0.3, as it defines a format which should be aninteger
, but usestype: number
when thetype: integer
should be used.As it is ambiguous, the validator should emit an error of some sort, as openapi tools are very likely to either ignore either
type
orformat
, or fail when trying to combined the two.An example of a tool which silently ignores the
format
is https://github.com/oxidecomputer/progenitor/issues/266