Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
moontai0724 opened this issue Mar 18, 2024 · 0 comments
Open

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

moontai0724 opened this issue Mar 18, 2024 · 0 comments

Comments

@moontai0724
Copy link

moontai0724 commented Mar 18, 2024

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'.
@moontai0724 moontai0724 changed the title V3.1 Parameter Type Wrongly Referenced V3.0 Schema V3.1 Schema Type Wrongly Referenced V3.0 Schema Mar 18, 2024
@moontai0724 moontai0724 changed the title V3.1 Schema Type Wrongly Referenced V3.0 Schema [openapi-types] V3.1 Schema Type Wrongly Referenced V3.0 Schema Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant