EricWebsmith / pydantic_mermaid

convert Pydantic models to Mermaid charts
MIT License
15 stars 2 forks source link

Add default values for fields #3

Closed LordFckHelmchen closed 8 months ago

LordFckHelmchen commented 9 months ago

Currently, default values on fields are not rendered, e.g. for

class A(BaseModel):
    a: int = 5

We'll get

    class A {
        a: int
    }

Ideally we should get

    class A {
        a: int = 5
    }
EricWebsmith commented 8 months ago

Thanks for the report. I believe this has been fix by v0.7.0 which is just released.