Skip to content

Generator failing on class with Custom Root Type #26

@agostof

Description

@agostof

The models in the temporary work directory for several classes are empty and causes the generator to stop.
The models in question are looking like:

class TraitNewRequest(BaseModel):

What I see in common for the models affected is that the server-side definition has a __root__ attribute (pydantic custom root type). They are defined as follows on the server-side:

class TraitNewRequest(BaseModel):
    __root__: TraitBaseClass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions