Skip to content

Releases: cnizzardini/cakephp-swagger-bake

v2.4.2

17 Jul 15:16
b30d989
Compare
Choose a tag to compare

SwaggerBake v2.4.2 is now available! See the changelog for every commit.

Features

  • Support array list from YAML #440

Fixes

  • Bug fixes for OpenApiRequestBody::ref #441

v2.4.1

09 Jul 14:55
c6aab8c
Compare
Choose a tag to compare

SwaggerBake v2.4.1 is now available! See the changelog for every commit.

Fixes

  • Support controllers defined in snake_case form from routes #433
  • Support changes made to LocatorAwareTrait in cakephp 4.4.2 #433

v1.7.7

16 Jul 00:09
f3a5012
Compare
Choose a tag to compare

SwaggerBake v1.7.7 is now available! See the changelog for every commit.

Fixes

v2.4.0

23 Jun 00:46
26c4e33
Compare
Choose a tag to compare

SwaggerBake v2.4.0 is now available! See the changelog for every commit.

This is a breaking change release. The config/swagger_bake.php had been loaded automatically as part of the plugins bootstrap process. This caused a few issues in other packages and has been removed. If you encounter an error you need to load the config in your config/bootstrap.php file:

Configure::load('swagger_bake', 'default', false);

v2.3.0

09 Jun 00:08
201ea7e
Compare
Choose a tag to compare

SwaggerBake v2.3.0 is now available! See the changelog for every commit.

Features

  • Entity mass assignment support #422

Changes

  • Adds OpenApiControllerService and deprecates SwaggerUIComponent #415
  • ModelScanner now attempts using LocatorAwareTrait::fetchTable (cake 4.3 or higher) to match a table to a route via the controller #416
  • Support for setting OpenAPI Security properties from the AuthenticationComponent has been dropped. It was no longer possible to support this with the fixes made to support CakePHPs dependency injection. These will now need to be defined using the #[OpenApiSecurity] attribute (note an example of how to set security via events was added to the events documentation) #423
  • Swagger class now requires an instance of Configuration, if you are using SwaggerFactory no changes are necessary #413

Fixes

  • Fixes breaking CakePHPs auto-wiring by instantiating instances of controllers without calling the userlands controller constructor #423
  • Config docType setting in swagger_bake.php was not being respected, was defaulting to "swagger" #415

Misc

  • Refactor configuration class #412
  • Move bake and install into services #414
  • Tables are now instantiated via the LocatorAwareTrait rather than calling the userland constructor #423
  • Adds type of operator to query parameter schema description when using CakeSearch extension #416
  • Adds create() method to ExtensionInterface which must create an instance of the Extension #423
  • Refactors ExtensionLoader

v2.2.13

25 May 23:19
9e2e405
Compare
Choose a tag to compare

SwaggerBake v2.2.13 is now available! See the changelog for every commit.

Fixes

  • Fixes bug requiring type property to be defined when defining schema in OpenApi YAML files #419
  • Fixes bug adding invalid tags property to OpenApi paths #420 maaan

v2.2.12

23 Apr 12:28
24dbc2c
Compare
Choose a tag to compare

SwaggerBake v2.2.12 is now available! See the changelog for every commit.

Fixes

  • OpenApiResponse schema of type array not working #418

v2.2.11

03 Apr 16:11
6e7cff4
Compare
Choose a tag to compare

SwaggerBake v2.2.11 is now available! See the changelog for every commit.

Features

  • Upgrades SwaggerUI to v4.10.3
  • Upgrades Redocly to v2.0.0-rc.66

Fixes

  • Defining OpenApiSchemaProperty and OpenApiQueryParam at DTO class-level not working #407

v2.2.10

01 Apr 22:30
9029ac6
Compare
Choose a tag to compare

SwaggerBake v2.2.10 is now available! See the changelog for every commit.

Features

  • Adds OpenApiPath::tags #402

Fixes

  • Misspelling in OpenApiSchema visibility constants, deprecates old misspelled constants. #396

Misc

  • Increase phpstan level from 6 to 7 #396

v2.2.9

28 Mar 21:25
c532df5
Compare
Choose a tag to compare

SwaggerBake v2.2.9 is now available! See the changelog for every commit.

Fixes

  • Plugin controller namespaces not considered when setting FQN #399