Skip to content

v1.1.0

Latest

Choose a tag to compare

@FabianClemenz FabianClemenz released this 26 Oct 10:37
Immutable release. Only release title and notes can be modified.
2e087cb

erdify 1.1.0 adds --strict, so a file that can't be parsed fails the run instead of silently dropping its entities from the diagram, and fixes a crash on .sql files that aren't valid UTF-8. The default behavior is unchanged.

Added

  • --strict (and strict = true under [tool.erdify]) makes a model or
    .sql file that cannot be parsed fail the run: erdify reports every failing
    file on stderr, then exits 1 without writing anything. Without it, such a
    file is still reported and skipped, and the run exits 0, as before. From
    Python, pass strict=True to parse_models_directory, ASTDatabaseParser
    or SqlSchemaParser. They raise the new erdify.ModelParseError, whose
    errors attribute lists every (file, message) pair.

Fixed

  • A .sql file that is not valid UTF-8 (or cannot be read) no longer aborts
    the whole run. Like a file with a syntax error, it is reported on stderr and
    skipped, and the other files are still rendered. With --strict it is
    reported together with all other failures.

Full changelog: v1.0.0...v1.1.0