2017-12-28 10:55:05 +01:00
CHANGELOG
=========
2020-05-30 18:08:25 +02:00
3.7.0 (unreleased)
2018-07-16 09:45:18 +02:00
------------------
2020-05-30 18:08:25 +02:00
* Added `@SerializedName` annotation support and name converters when using Symfony >= 4.2.
2020-07-11 18:05:11 +02:00
* remove pattern added from the Expression Violation message.
2020-05-30 18:08:25 +02:00
3.3.0
-----
* Usage of Google Fonts was removed. System fonts `serif` / `sans` will be used instead.
2018-07-16 09:45:18 +02:00
This can lead to a different look on different operating systems.
You can [re-add Google Fonts again manually by overriding the template ](https://symfony.com/doc/current/bundles/NelmioApiDocBundle/faq.html#re-add-google-fonts ).
* The Twig template for the Swagger UI now contains blocks to make it easier to overwrite certain parts.
See the [official documentation ](https://symfony.com/doc/current/bundles/NelmioApiDocBundle/customization.html ) how to do this.
2018-03-24 11:23:14 +01:00
3.2.0 (2018-03-24)
2018-02-19 21:53:32 +01:00
------------------
* Add a documentation form extension. Use the ``documentation` ` option to define how a form field is documented.
* Allow references to config definitions in controllers.
2018-03-17 14:36:57 +01:00
* Using `@Model` implicitely in `@SWG\Schema` , `@SWG\Items` and `@SWG\Property` is deprecated. Use `ref=@Model()` instead.
Before:
```php
/**
* This was considered as an array of models.
*
* @SWG \Property(@Model (type=FooClass::class))
*/
```
After:
```php
/**
* 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)))
*/
```
2018-02-19 21:53:32 +01:00
2018-03-13 12:40:36 -03:00
Config
* `nelmio_api_doc.areas` added support to filter by host patterns.
```yml
nelmio_api_doc:
2018-04-01 11:23:02 -03:00
areas: [ host_patterns: [ ^api\. ] ]
2018-03-13 12:40:36 -03:00
```
* Added dependency for "symfony/options-resolver:^3.4.4|^4.0"
2018-03-24 11:23:14 +01:00
3.1.0 (2018-01-28)
2017-12-28 10:55:05 +01:00
------------------
2018-01-25 15:03:03 +01:00
* Added Symfony Validator constraints support
2017-12-28 10:55:05 +01:00
Symfony Forms
* Support for boolean checkbox
* Support for integer
JMS Serializer
* Support JMS `int` (alias for `integer` )
2018-01-25 15:03:03 +01:00
* Also process phpdoc annotations
2017-12-28 10:55:05 +01:00
SwaggerPHP
* Handle `enum` and `default` properties from SwaggerPHP annotation
2018-01-25 21:11:34 +01:00
* Support `@Security` annotations
2017-12-28 10:55:05 +01:00
2018-01-05 13:08:02 +01:00
Config
* `nelmio_api_doc.routes` has been replaced by `nelmio_api_doc.areas` . Please update your config accordingly.
Before:
```yml
nelmio_api_doc:
routes: [ path_patterns: [ /api ] ]
```
After:
```yml
nelmio_api_doc:
areas: [ path_patterns: [ /api ] ]
```
2017-12-28 10:55:05 +01:00
3.0.0 (2017-12-10)
------------------
Large refactoring introducing `zircote/swagger-php` for swagger annotations.
See UPGRADE-3.0.md for upgrading instructions.