Skip to content

v0.14.1

Latest

Choose a tag to compare

@FabianClemenz FabianClemenz released this 14 Sep 13:19
· 5 commits to main since this release
Immutable release. Only release title and notes can be modified.
cd17a05

erdify 0.14.1 — a fix for django-ninja ModelSchema, and the new documentation image.

Fixed

  • erdify now recognises ninja-style ModelSchema classes — those taking their
    fields from a Django model via an inner Meta (django-ninja) or Config
    (ninja-schema) — and skips them with an explanatory warning instead of
    drawing an entity with no fields. Naming ModelSchema via --base-classes
    previously produced an empty box beside the real table, which was worse than
    no support at all. Detection is narrow: only an inner Meta/Config that
    assigns model counts, so an ordinary Pydantic model with a nested config
    class and Django's own class Meta are both untouched. Resolving those
    schemas properly remains open in
    #171.
  • docs/examples/frameworks.svg is well-formed XML again. Its header comment
    contained a command-line flag, and XML comments may not contain a double
    hyphen, so the file failed to parse — harmless for the site, which serves the
    PNG, but the file documented as "the editable source" would not open in a
    browser or vector editor.
  • The image footer reads "and raw SQL DDL" rather than listing it as a sixth
    bullet. The headline counts five frameworks; SQL DDL is an input format, and
    the flat list made the two numbers look like they disagreed.

Changed

  • The README and the documentation home page now open with a "five frameworks,
    one diagram" image — the same User/Order schema written in SQLModel,
    SQLAlchemy, Django, Pydantic and dataclasses, converging on the ERD they all
    produce. The previous image was the bare ERD under a caption claiming five
    frameworks, which the picture itself never showed. The snippets are taken
    from the runnable examples in docs/examples/, and it is drawn in the devsuit
    brand palette. docs/examples/frameworks.svg is the editable source; the
    now-unreferenced docs/examples/erd.png is removed.

Install: pip install erdify · Docs: https://erdify.devsuit.io/ · Full diff: v0.14.0...v0.14.1