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

Generate field description rather than docstring in FragmentsPlugin? #53

Open
devxoul opened this issue Mar 13, 2023 · 0 comments · May be fixed by #54
Open

Generate field description rather than docstring in FragmentsPlugin? #53

devxoul opened this issue Mar 13, 2023 · 0 comments · May be fixed by #54

Comments

@devxoul
Copy link
Contributor

devxoul commented Mar 13, 2023

Hi, thanks for this great library.
I'm trying to generate a fragment with descriptions but it gives the code like:

class UserFragment(BaseModel):
    username: str
    "A login ID"

Is there an option to generate a description rather than docstring?

class UserFragment(BaseModel):
    username: str = Field(description="A login ID")
@devxoul devxoul linked a pull request Mar 13, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant