oas3-rs icon indicating copy to clipboard operation
oas3-rs copied to clipboard

oas3-rs fails parsing OpenAPI 3.1 schemas with boolean properties generated by aide

Open tarnishablec opened this issue 3 weeks ago • 0 comments

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.

tarnishablec avatar Nov 22 '25 19:11 tarnishablec