Open MatthiasMargot opened 2 years ago
This mr adds support for aliased refs for the use-case that a given Schema's name is aliased vie the title field e.g.:
{ "User": { "type": "object", "properties": { "tags": { "type": "array", "items": { "$ref": "#/components/schemas/TagResponse" } } } }, "TagResponse": { "title": "Tag" } }
resulting in
export interface User { tags?: Tag[]; }
instead of
export interface User { tags?: TagResponse[]; }
This mr adds support for aliased refs for the use-case that a given Schema's name is aliased vie the title field e.g.:
resulting in
instead of