Releases: cnizzardini/cakephp-swagger-bake
Releases · cnizzardini/cakephp-swagger-bake
v2.1.1
v2.1.0
v2.0.4
v2.0.3
v2.0.2
SwaggerBake v2.0.2 is now available! See the changelog for every commit.
Features
- Allow changing default success schema #351
Fixes
- Fixes warning message when v1 annotations are detected.
- Allow a blank string for
SchemaProperty::example
. When null, the example property will be stripped from the JSON encoded OpenAPI schema.
v2.0.1
v1.7.6
v2.0.0
SwaggerBake v2.0.0 is now available! See the changelog for every commit.
PHP version
8.0
or higher and CakePHP4.2
or higher is now required.
Features / Changes
- Adds support for PHP 8 Attributes. Read the attribute documentation for more. #268
- Improved support for showing associated data using OpenApiResponse::associations #289
- Improve schema visibility options #331
application/json
is now the default request/response mime type.- OpenAPI Operations are now ordered based on method ordering in Controllers. To override this use OpenApiOperation::sortOrder #338
- Added new SwaggerBake.Path.created event
- Upgrade swagger to 4.0.1 #337
- Upgrade redocly to 2.0.0-rc.56 #337
Removes
- Drop support for
isPut
inOpenApiOperation
and replace withconfig/swagger_bake.php
option #334 - All Annotations have been removed. Using v1 annotations in v2 will generate a PHP warning, for example:
Warning (512): Use SwaggerBake\Lib\Attribute\OpenApiSchema instead of SwaggerBake\Lib\Annotation\SwagEntity in App\Model\Entity\Country
- Note: Usage of SwagSearch which will throw an exception (use OpenApiSearch)
- Note: Usage of SwagDtoQuery and SwagDtoRequestBody will not provide a warning or exception, use OpenApiDtoQuery and OpenApiDtoRequestBody respectively.