Releases: jdkandersson/OpenAlchemy
Releases · jdkandersson/OpenAlchemy
Release v2.5.0
Added
- Add support for
int
values fornumber
types.
Release v2.4.2
Added
- Add support for SQLAlchemy 1.4.
- Add support for grouping models into schemas. [#294]
v2.3.0
v2.2.0
v2.1.0
v2.0.2
Changed
- Changed from
setup.py
to poetry
v2.0.1
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
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
thex-secondary
value and instead be noted based on converting the
x-secondary
value from snake_case to PascalCase. Name clashes are avoided
by pre-pendingAutogen
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 forinit_model_factory
,init_json
and
init_yaml
. OpenAlchemy now behaves as thoughdefine_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
- Refactor the models file generation to use the artifacts from the schemas.
- Add
build_json
andbuild_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
- Move
description
to be a top level property artifact for every property.