Open moontai0724 opened 8 months ago
In version 3.1 of OpenAPI, the exclusiveMaximum and exclusiveMinimum properties are of type number, whereas they were of type boolean in version 3.0.
exclusiveMaximum
exclusiveMinimum
number
boolean
When utilizing OpenAPIV3_1, the ParameterObject is referenced as OpenAPIV3.ParameterObject. This leads to a compatibility issue when using number type parameters, resulting in a type error:
OpenAPIV3_1
ParameterObject
OpenAPIV3.ParameterObject
Type '{ ... schema: TNumber; }' is not assignable to type 'ParameterObject'. Types of property 'schema' are incompatible. ... Type 'number' is not assignable to type 'boolean | undefined'.
I just stumbled on this as well. I was wondering if there was a deeper meaning to this. But I guess it's just a bug.
In version 3.1 of OpenAPI, the
exclusiveMaximum
andexclusiveMinimum
properties are of typenumber
, whereas they were of typeboolean
in version 3.0.When utilizing
OpenAPIV3_1
, theParameterObject
is referenced asOpenAPIV3.ParameterObject
. This leads to a compatibility issue when using number type parameters, resulting in a type error: