Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Releases: cebe/yii2-openapi

Version 2.0-beta2

05 Jan 14:01
a5584d1
Compare
Choose a tag to compare
Version 2.0-beta2 Pre-release
Pre-release

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 your x-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?

  1. Make sure all migrations are applied and you have a state with no changes to the OpenAPI schema.
  2. Update the package with composer
  3. Run the API generator
  4. Check the diff on generated code if changes make sense, if not please report bugs
  5. 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

16 May 16:02
3d4e93c
Compare
Choose a tag to compare
Version 2.0-beta1 Pre-release
Pre-release

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

13 Oct 16:35
0d5c899
Compare
Choose a tag to compare
Version 2.0-alpha Pre-release
Pre-release

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

26 Jun 12:56
14955c3
Compare
Choose a tag to compare
  • support custom parameter naming for model ID

Version 1.0.1

26 Jun 10:35
665b773
Compare
Choose a tag to compare
  • basic support for generating validation rules

Version 1.0.0

26 Jun 07:42
07fcbec
Compare
Choose a tag to compare

Stable release, mainly just updated dependency for cebe/php-openapi to 1.1.

0.9.0-beta

22 Mar 16:12
14f2a4f
Compare
Choose a tag to compare
0.9.0-beta Pre-release
Pre-release

Initial release:

API generator for

  • URL routes
  • Controllers
  • Models
  • migrations
  • Fake data generator