Releases: jdkandersson/OpenAlchemy
Releases · jdkandersson/OpenAlchemy
Release v2.5.0
Added
- Add support for
intvalues fornumbertypes.
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.pyto 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-tablenamevalues. [#189] - Add check enforcing unique
x-secondaryvalues. [#189] - Add custom association schemas validation [#189]
- Add support for custom association tables [#189]
- Add
openalchemyCLI 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-secondaryvalue and instead be noted based on converting the
x-secondaryvalue from snake_case to PascalCase. Name clashes are avoided
by pre-pendingAutogenas 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-manyrelationships
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-secondarywas defined both on the relationship property in
allOfand on the referenced model). [#189]
Removed
- Remove
define_allparameter forinit_model_factory,init_jsonand
init_yaml. OpenAlchemy now behaves as thoughdefine_allis set to
True. This means that a pure model reference (a schema with only the
$refkey) 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_jsonandbuild_yamlinterfaces 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
descriptionto be a top level property artifact for every property.