Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generator failing on class with Custom Root Type #26

Open
agostof opened this issue Jun 7, 2021 · 0 comments
Open

Generator failing on class with Custom Root Type #26

agostof opened this issue Jun 7, 2021 · 0 comments

Comments

@agostof
Copy link

agostof commented Jun 7, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant