Open redparham opened 12 months ago
Hi @redparham
you use OpenAPI 3.0.3 (Wright Draft 00 schema) which doesn't support integers as floats. Switch to OpenAPI 3.1 (Draft 2020-12 schema) and it should work for you.
Hi @p1c2u.
I see this in the 3.0.1 and 3.1.0 spec:
Note that integer as a type is also supported and is defined as a JSON number without a fraction or exponent part. https://spec.openapis.org/oas/v3.1.0#data-types
Hmm , that's true. I will investigate this more.
This schema with scientific notation
maximum: 1e2
results in this unexpected failure
If I change
maximum: 1e2
tomaximum: 100
, it validates without error.