Bug
Parsing OpenAPI 3.1 schemas generated by aide, where some properties use boolean schemas (e.g. "data": true), fails with an error:
did not match any variant of untagged enum ObjectOrReference
Schema example
{
"type": "object",
"properties": {
"data": true,
"meta": true
}
}
Spec reference
According to OpenAPI 3.1 and JSON Schema 2020-12, boolean schemas are valid (true means any instance is valid, false means none is valid).
Reference: https://json-schema.org/draft/2020-12/json-schema-core.html#section-4.3.2
Suggestion
Support boolean schemas in all schema positions (especially properties) for full OpenAPI 3.1 compatibility.
Bug
Parsing OpenAPI 3.1 schemas generated by aide, where some properties use boolean schemas (e.g.
"data": true), fails with an error:Schema example
{ "type": "object", "properties": { "data": true, "meta": true } }Spec reference
According to OpenAPI 3.1 and JSON Schema 2020-12, boolean schemas are valid (
truemeans any instance is valid,falsemeans none is valid).Reference: https://json-schema.org/draft/2020-12/json-schema-core.html#section-4.3.2
Suggestion
Support boolean schemas in all schema positions (especially properties) for full OpenAPI 3.1 compatibility.