Skip to content

Releases: drivendataorg/erdantic

v0.7.0

11 Feb 17:03
80603e2
Compare
Choose a tag to compare
  • Added support for Pydantic V1 legacy models. These are models created from the pydantic.v1 namespace when Pydantic V2 is installed. (PR #94 from @ursereg)

v0.6.0

10 Jul 02:04
5bb6c04
Compare
Choose a tag to compare
  • Added support for Pydantic V2.
  • Removed support for Pydantic V1.
  • Changed the init signature for PydanticField to work with Pydantic V2's API.
  • Added is_many and is_nullable functions to erdantic.typing.

v0.5.1

04 Jul 22:27
e8e04c1
Compare
Choose a tag to compare
  • Changed pydantic dependency to be < 2. This will be the final version of erdantic that supports pydantic v1.
  • Changed to pyproject.toml-based build.

v0.5.0

30 Jul 01:46
adab9ba
Compare
Choose a tag to compare
  • Removed support for Python 3.6. (Issue #51, PR #56)
  • Added support for modules as inputs to all entrypoints to diagram creation (create, draw, to_dot, CLI). For all modules passed, erdantic will find all supported data model classes in each module. (Issue #23, PR #58)
    • Added new parameter limit_search_models_to to all entrypoints to allow for limiting which data model classes will be yielded from searching a module.

v0.4.1

08 Apr 20:36
1b44bc5
Compare
Choose a tag to compare
  • Fixed error when rendering a data model that has field using typing.Literal. (PR #49)

v0.4.0

06 Nov 23:44
80c95bd
Compare
Choose a tag to compare
  • Added support for showing field documentation from Pydantic models with descriptions set with Field(description=...) in SVG tooltips. This will add an "Attributes" section to the tooltip using Google-style docstring format and lists fields where the description keyword argument is used. (Issue #8, PR #42)

v0.3.0

29 Oct 04:01
471f07f
Compare
Choose a tag to compare
  • Fixed handling of forward references in field type declarations. Evaluated forward references will be properly identified. Forward references not converted to typing.ForwardRef will throw a StringForwardRefError with instructions for how to resolve. Unevaluated forward references will throw an UnevaluatedForwardRefError with instructions for how to resolve. See new documentation for more details. (Issue #40, PR #41)
  • Changed name of erdantic.errors module to erdantic.exceptions. (PR #41)
  • Added new ErdanticException base class from which other exceptions raised within the erdantic library are subclassed from. Changed several existing ValueError exceptions to new exception classes that subclass both ErdanticException and ValueError. (PR #41)
  • Changed __lt__ method on Model and Edge to return NotImplemented instead of raising an exception to follow typical convention for unsupported input types. (PR #41)

v0.2.1

17 Feb 06:42
Compare
Choose a tag to compare
  • Fixed runtime error when rendering a data model that had a field containing typing.Any. (#25, #26)

v0.2.0

15 Feb 06:27
Compare
Choose a tag to compare
  • Add option to specify models as terminal nodes. This allows you to truncate large diagrams and split them up into smaller ones. (#24)

v0.1.2

11 Feb 04:35
d101dfa
Compare
Choose a tag to compare
  • Fixed bug where Pydantic fields were missing generics in their type annotations. (#19)
  • Add tests against static rendered DOT output. Change adapter tests to use parameterized fixtures. (#21)