Releases: cebe/yii2-openapi
Version 2.0-beta2
This release includes many fixes to database schema and migration generation and some PHP 8 fixes.
- Changes in MariaDB and MySQL for handling datetime and timestamps.
- Changes regarding generation of ENUM columns.
- Changes regarding generation of DOUBLE/FLOAT/DECIMAL columns.
- Other changes to consistency of DB migration generation.
- Correct handling of
x-db-type
, you may need to adjust yourx-db-type
definition if you use this feature and included things like default value and NULL/NOT NULL in it. See README for details.
Many Thanks to @SOHELAHMED7 and @siggi-k for working on these!
Check your migrations when you update! See also the "How to update" steps below.
How to update?
- Make sure all migrations are applied and you have a state with no changes to the OpenAPI schema.
- Update the package with composer
- Run the API generator
- Check the diff on generated code if changes make sense, if not please report bugs
- Check your migrations, this release may create migrations that change DB, e.g. string to enum, timestamp to datetime and similar things. If columns change from string to enum, make sure you add code that handles values that are not included in the enum type, otherwise migration will fail.
Version 2.0-beta1
This is the first beta release of the new generation of this library which has been developed based on 1.0 but has changed a lot.
We have added a lot of features which makes this ready for use in real projects.
Database migrations are generated by generating a diff between spec and current database structure.
Models are generated based on schema description.
CRUD controllers are generated if the OpenAPI description follows JSON-API.
In memory of @Insolita, who has implemented the majority of these features.
Making this library would not have been possible without her contributions.
Version 2.0-alpha
New generation of the library which has been developed based on 1.0 but has changed a lot.
We have added a lot of features which makes this ready for use in real projects.
Database migrations are generated by generating a diff between spec and current database structure.
Models are generated based on schema description.
CRUD controllers are generated if the OpenAPI description follows JSON-API.
Many thanks to @Insolita, who has implemented the majority of these features!
Version 1.0.2
Version 1.0.1
- basic support for generating validation rules
Version 1.0.0
Stable release, mainly just updated dependency for cebe/php-openapi to 1.1.
0.9.0-beta
Initial release:
API generator for
- URL routes
- Controllers
- Models
- migrations
- Fake data generator