metosin / spec-tools

Clojure(Script) tools for clojure.spec
Eclipse Public License 2.0
593 stars 94 forks source link

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

Open MokkeMeguru opened 2 years ago

MokkeMeguru commented 2 years ago

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 https://github.com/OAI/OpenAPI-Specification/issues/2244

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

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.