v3.0.0
SwaggerBake v3.0.0 is now available! See the changelog for every commit.
- Requires CakePHP ^5.0
- Requires PHP ^8.1
Changes
- Moved openapi build logic out of constructor #469. You must now call
build()
before accessing OpenAPI data via theSwagger
class. - Updates Redocly to the latest: https://github.com/Redocly/redoc/releases/tag/v2.1.3
- Updates SwaggerUI to the lastest: https://github.com/swagger-api/swagger-ui/releases/tag/v5.11.0
Removes
OpenApiDtoQuery
attribute has been removed, useOpenApiQueryParam
instead #426OpenApiDtoRequestBody
attribute has been removed, useOpenApiSchemaProperty
instead #426SwaggerUiComponent
has been removed, useOpenApiControllerService
which can optionally be injected as an argument to your controller method.SwaggerBake\Lib\Factory\SwaggerFactory
has been removed, useSwaggerBake\Lib\SwaggerFactory
instead.- Misspelled visibility constants in
OpenApiSchema
have been removed, use the corrected ones instead. Configuration
methods get/set have been removed, use property specific getters and setters insteadSchema
public property was removed, use visibility property and its getters/setters instead.- Support for x-exception-fqn was removed. Use OpenApiExceptionSchemaInterface.
OpenApiSearch::tableClass
has been removed, useOpenApiSearch::alias instead
#451
Misc
- Adds PHP 8.1 language features #427
- Convert Attribute properties to readonly where possible.
- Bumps phpstan to ^1.8 and fixes code
- Replaces usage of phpstan reflection classes in tests