openapi-typescript-codegen
openapi-typescript-codegen copied to clipboard
`allOf` ignores schemas which are not specified via ref
If all schemas in allOf are specified via ref, then lib creates correct response types in SDK
OpenApi doc:
"allOf": [
{
"$ref": "#/components/schemas/Schema1"
},
{
"$ref": "#/components/schemas/Schema2"
}
]
Response type:
Resource = (Schema1 & Schema2);
In case if a schema is not specified via ref, the lib just ignores it.
"allOf": [
{
"properties": {
...
}
},
{
"$ref": "#/components/schemas/Schema2"
}
]
Response type:
Resource = Schema2;
Any updates on this?
Also getting bit by this one. I didn't have any problems with another spec that didn't use allOf.