- Add a documentation form extension. Use the
documentation
option to define how a form field is documented. - Allow references to config definitions in controllers.
- 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.