Skip to content

[openapi-types] V3.1 Schema Type Wrongly Referenced V3.0 Schema #900

Description

@moontai0724

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.

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:

Type '{ ... schema: TNumber; }' is not assignable to type 'ParameterObject'.
      Types of property 'schema' are incompatible.
          ...
                Type 'number' is not assignable to type 'boolean | undefined'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions