Skip to content

Releases: jdkandersson/OpenAlchemy

Release v2.5.0

23 May 10:35
e1e8921
Compare
Choose a tag to compare

Added

  • Add support for int values for number types.

Release v2.4.2

04 Apr 08:26
Compare
Choose a tag to compare

Added

  • Add support for SQLAlchemy 1.4.
  • Add support for grouping models into schemas. [#294]

v2.3.0

07 Mar 07:47
06b63c5
Compare
Choose a tag to compare

Added

  • Add support for OpenAPI 3.1. [#276]

v2.2.0

23 Jan 09:34
ead2cc8
Compare
Choose a tag to compare

Fixed

  • Removed unnecessary imports in __init__.py files. [#255]

Added

  • Caching validation results to speed up startup. [#251]

v2.1.0

20 Dec 04:28
9820cc8
Compare
Choose a tag to compare

Added

  • Add support for namespaced x-open-alchemy- prefix on top of the shorter
    x- prefix for extension properties. [#236]

v2.0.2

19 Dec 09:04
Compare
Choose a tag to compare

Changed

  • Changed from setup.py to poetry

v2.0.1

08 Dec 10:37
600a3b1
Compare
Choose a tag to compare

Added

  • Add version, title and description (if defined) into the JSON OpenAPI
    specification stored with the package generated by the build module.

v2.0.0

15 Nov 03:04
4e95808
Compare
Choose a tag to compare

Added

  • Add check enforcing unique x-tablename values. [#189]
  • Add check enforcing unique x-secondary values. [#189]
  • Add custom association schemas validation [#189]
  • Add support for custom association tables [#189]
  • Add openalchemy CLI with a first sub command to build a Python package
    from a specification file. [#201]
  • Add a CLI sub command to regenerate models. [#202]
  • Add support for database default values using x-server-default. [#196]

Changed

  • Change the association table to no longer be noted on the models based on
    the x-secondary value and instead be noted based on converting the
    x-secondary value from snake_case to PascalCase. Name clashes are avoided
    by pre-pending Autogen as many times as required. [#189]
  • Change the association table to no longer be constructed as a table and
    instead to be constructed as another model. [#189]
  • Refactor column factory to use the schemas artifacts [#196]
  • Refactor model factory to use the schemas artifacts [#196]

Fixed

  • Fix bug where the association table defined for many-to-many relationships
    did not make the foreign key columns referencing the two sides of the
    relationship primary keys. This may require a database migration if alembic
    was used to generate the database schema.
    [#189]
  • Fix bug where some properties were incorrectly picked from a reference even
    though they existed locally (only impacts relationship properties where, for
    example, x-secondary was defined both on the relationship property in
    allOf and on the referenced model). [#189]

Removed

  • Remove define_all parameter for init_model_factory, init_json and
    init_yaml. OpenAlchemy now behaves as though define_all is set to
    True. This means that a pure model reference (a schema with only the
    $ref key) can no longer be used to change the name of a model.
    [#189]

Models Distribution Package

10 Oct 09:09
4c1916b
Compare
Choose a tag to compare
  • Refactor the models file generation to use the artifacts from the schemas.
  • Add build_json and build_yaml interfaces which can be used to produce a package with the models.
  • Changed output of build_json and build_yaml to be contained within a project directory.
  • Add support for building sdist or wheel distributable archive.
  • Drop support for Python 3.6 and add support for Python 3.9.

v1.5.4 Correct Artifact Location

30 Aug 07:44
Compare
Choose a tag to compare
  • Move description to be a top level property artifact for every property.