-
-
Notifications
You must be signed in to change notification settings - Fork 356
Description
Hello everybody,
OAS 3.1.1 just landed a clarification for Boolean JSON Schemas. IMHO AsyncApi 2.0.0 can also benefit by clarifying that Schema Object could be represented by additional values of true or false (Boolean JSON Schemas as later version of spec call it) . It's an important implication for tooling and JSON Schema Draft 7 explicitly allow to use Boolean JSON Schema. I guess using Boolean JSON Schemas in embedded Schema Objects is implicitly allowed, be we should explicitly clarify if Boolean JSON Schemas are also allowed as top levels schemas (e.g. #/components/schemas).
I'm currently working on tooling and the tooling I'm buiding already supports this as I assumed that Schema Object represents any JSON Schema as mandated by Draft 7, which includes Boolean JSON Schemas. We should either explicitly disallow or allow use of Boolean JSON Shemas within AsyncApi 2.0.0 spec to no leave space for different interpretations of tooling authors.