EricWebsmith / pydantic_mermaid

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

Add default values for fields #3

Closed LordFckHelmchen closed 6 months ago

LordFckHelmchen commented 6 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 6 months ago

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