Closed Bram-dc closed 8 months ago
It transforms this:
"picture": {
"$ref": "#/components/schemas/Picture",
"nullable": true
},
into this:
"picture": {
"nullable": true,
"allOf": [
{
"$ref": "#/components/schemas/Picture"
}
]
},
Fixed in 3.22.4
Context: OpenAPI null or reference issue
I am trying to get correct typings when using a reference and nullable together.
Currently I am using this piece of code to apply a fix to the generated json/openapi schema:
Would I be doing something wrong or is this an issue in the current script?