Closed
Description
Using $ref somehow breaks generated types. I'm new with openapi and with the library so my apologies if fault is mine but following setup will produce wrong types 🤔
https://gitpod.io#snapshot/50d6481d-7417-4c11-97dd-b84e84f71af5
run yarn generate
and check schema.ts
I spent hours on the and schema looks ok. Whats strange to me is following output
export interface external {
"components/current.yml": {
paths: {};
components: {};
operations: {};
};
"paths/current.yml": {
paths: {};
components: {};
operations: {};
};
}
where the components
interface accessing non existing path
export interface components {
readonly schemas: {
readonly full_user: external["components/current.yml"]["full_user"];
};
}