-
Usage of Google Fonts was removed. System fonts
serif
/sans
will be used instead. This can lead to a different look on different operating systems. You can re-add Google Fonts again manually by overriding the template. -
The Twig template for the Swagger UI now contains blocks to make it easier to overwrite certain parts. See the official documentation how to do this.
-
Add a documentation form extension. Use the
documentation
option to define how a form field is documented. -
Allow references to config definitions in controllers.
-
Using
@Model
implicitely in@SWG\Schema
,@SWG\Items
and@SWG\Property
is deprecated. Useref=@Model()
instead.Before:
/** * This was considered as an array of models. * * @SWG\Property(@Model(type=FooClass::class)) */
After:
/** * For an individual object: * @SWG\Property(ref=@Model(type=FooClass::class)) * * For an array: * @SWG\Property(type="array", @SWG\Items(ref=@Model(type=FooClass::class))) */
Config
-
nelmio_api_doc.areas
added support to filter by host patterns.nelmio_api_doc: areas: [ host_patterns: [ ^api\. ] ]
-
Added dependency for "symfony/options-resolver:^3.4.4|^4.0"
- Added Symfony Validator constraints support
Symfony Forms
- Support for boolean checkbox
- Support for integer
JMS Serializer
- Support JMS
int
(alias forinteger
) - Also process phpdoc annotations
SwaggerPHP
- Handle
enum
anddefault
properties from SwaggerPHP annotation - Support
@Security
annotations
Config
-
nelmio_api_doc.routes
has been replaced bynelmio_api_doc.areas
. Please update your config accordingly.Before:
nelmio_api_doc: routes: [ path_patterns: [ /api ] ]
After:
nelmio_api_doc: areas: [ path_patterns: [ /api ] ]
Large refactoring introducing zircote/swagger-php
for swagger annotations.
See UPGRADE-3.0.md for upgrading instructions.