-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
Currently if I have
class ChildClass(ParentClass):
something: str
class ParentClass(BaseModel):
anything: str
The generated output is:
export interface ChildClass {
something: string;
anything: string;
}
export interface ParentClass {
anything: string;
}
When a better output would be:
export interface ChildClass extends ParentClass {
something: string;
}
export interface ParentClass {
anything: string;
}
It seems https://github.com/bcherny/json-schema-to-typescript supports this. See this example.
Metadata
Metadata
Assignees
Labels
No labels