Releases: drivendataorg/erdantic
Releases · drivendataorg/erdantic
v0.7.0
v0.6.0
v0.5.1
v0.5.0
- 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.
- Added new parameter
v0.4.1
v0.4.0
- 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 thedescription
keyword argument is used. (Issue #8, PR #42)
v0.3.0
- 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 aStringForwardRefError
with instructions for how to resolve. Unevaluated forward references will throw anUnevaluatedForwardRefError
with instructions for how to resolve. See new documentation for more details. (Issue #40, PR #41) - Changed name of
erdantic.errors
module toerdantic.exceptions
. (PR #41) - Added new
ErdanticException
base class from which other exceptions raised within the erdantic library are subclassed from. Changed several existingValueError
exceptions to new exception classes that subclass bothErdanticException
andValueError
. (PR #41) - Changed
__lt__
method onModel
andEdge
to returnNotImplemented
instead of raising an exception to follow typical convention for unsupported input types. (PR #41)