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

In OpenAPI 3.0.x, Cannot use null type #266

Open
MokkeMeguru opened this issue Mar 15, 2022 · 0 comments
Open

In OpenAPI 3.0.x, Cannot use null type #266

MokkeMeguru opened this issue Mar 15, 2022 · 0 comments

Comments

@MokkeMeguru
Copy link

In OpenAPI 3.0.x, we should use nullable property instead of use null type,

https://swagger.io/docs/specification/data-models/data-types/

however, In OpenAPI 3.1, we should use null type instead of nullable
OAI/OpenAPI-Specification#2244

So that, I want to know which is better opinion in spec-tools

  • we support OpenAPI 3.0.x (we only support nullable)
  • we support OpenAPI 3.1 ~ (we only support null)
  • we support 3.0.x and 3.1 with new namespace like openapi31, openapi30
  • user should change nullable <-> null using some functions.

ref: https://github.com/metosin/spec-tools/blob/master/docs/06_openapi.md

If you give me advice, I'll write some PR if I can.

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