MUST define a format for number types
number
properties MUST have a format defined (float
, double
, or decimal
).
Invalid Example
requestBody:
content:
application/json:
schema:
type: object
properties:
range:
type: number
Valid Example
requestBody:
content:
application/json:
schema:
type: object
properties:
range:
type: number
format: float
Published: 24 January 2025
Last updated: 14 August 2025
Page Source