Skip to content

Clarify support for Boolean JSON Schemas #554

@char0n

Description

@char0n

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ❔ QuestionA question about the spec or processes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions