Skip to content

Generate field description rather than docstring in FragmentsPlugin? #53

@devxoul

Description

@devxoul

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")

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