62 Commits

Author SHA1 Message Date
Guilhem Niot
82d766bfe4 Merge branch 'v3' 2020-05-30 18:23:49 +02:00
Guilhem Niot
dfff2476d8
Add @SerializedName support (#1636)
* Add `@SerializedName` support

* Also test `@SerializedName` on properties

* Fix tests with sf < 4.2

* Fix the tests

* Update the CHANGELOG
2020-05-30 18:08:25 +02:00
Guilhem Niot
fb84e36fdf
Fix #1628 : annotations construction is context dependant (#1632)
* Fix #1628 : since annotations construction is context dependant, we cannot use the cached annotations reader

* CS

* Small improvement

* cs
2020-05-29 21:52:06 +02:00
Filip Benčo
78664ef9ec
OpenApi 3 Support (#1623)
* Initial pass for OA3 upgrade

* Fix Util Tests

* Fix first batch of Unit Tests. Up to Model

* Another batch of fixed tests

* Update annotations

* Convert Model & Property Describers

* Update tests, Fix RouteDescribers, FIx additional bugs

* Another batch of updates

* Another batch of fixed Functional Tests

* Fix FunctionalTest tests

* Fix Bazinga Tests

* FIx FOS Rest

* Fix JMS TEsts & describers

* Fix all Tests

* Fix few stuff from own CR

* CS Fixes

* CS Fixes 2

* CS Fixes 3

* CS Fixes 4

* Remove collection bug

* Updates after first CRs

* CS

* Drop support for SF3

* Update the docs

* Add an upgrade guide

* misc doc fixes

* Configurable media types

* Code Style Fixes

* Don't use ::$ref for @Response and @RequestBody

* Fix upgrading guide

* Fix OA case

Co-authored-by: Filip Benčo <filip.benco@websupport.sk>
Co-authored-by: Guilhem Niot <guilhem.niot@gmail.com>
Co-authored-by: Mantis Development <mantis@users.noreply.github.com>
2020-05-28 13:19:11 +02:00
Guilhem Niot
1a9a5d7ce6
Merge pull request #1552 from cyberemissary/duplicate-param-cleanup
Added describer that removes duplicate parameters when using $ref.
2020-03-14 11:41:27 +01:00
Guilhem Niot
b88793267e Use FOSRest *Param::$key when defined 2020-02-21 10:42:13 +01:00
cyberemissary
94f7715f68 Refactor Existing Ref parsing in RouteMetadataDescriber 2020-02-06 18:44:17 -05:00
smoench
6f7c1fa870
remove FOSRest on symfony 5 test runs as FOSRest does not support symfony 5 yet 2019-12-20 10:52:36 +01:00
Maxime Helias
3888d6b976 Fix build travis 2019-11-20 12:15:00 +01:00
Paweł Mikołajczuk
14e4eedbad Merge pull request #1522 from ahilles107/port/options_support_in_model
Port/options support in model
2019-06-01 15:31:09 +02:00
Asmir Mustafic
eb255010a0 Support typed embedded relation with willdurand/hateoas 3.0 (#1510)
* allow typed embedded relation with hateoas 3.0

* symfony/framework-bundle 4.2.7 is broken

https://github.com/symfony/symfony/pull/31156

* internal public methods
2019-05-02 10:02:16 +02:00
Guilhem N
b171794cce
Merge pull request #1460 from babaorum/areas-in-annotation
add a way to filter areas on route by annotation
2019-02-13 19:32:19 +01:00
babaorum
dcfa5e23e5 add a way to filter areas on route by annotation 2019-02-05 22:43:18 +01:00
Asmir Mustafic
0fb5d7afa2
jms 2.0 groups tested 2019-01-26 21:03:21 +01:00
Asmir Mustafic
9bae1115d6 jms serializer group names are based on the internal property name, not on the serialized name (#1421) 2018-10-17 17:19:37 +02:00
Ilia Burtsev
346235de97 Add ability to use response objects which defined in configuration 2018-10-02 17:02:17 +07:00
Pavel Batanov
995ade1c8d Respect property name for constraints 2018-09-11 13:42:50 +03:00
Asmir Mustafic
bd26696f8f respect jms serializer nested group exclusion 2018-08-26 22:58:35 +02:00
Asmir Mustafic
09e6f30572 Jms serializer default groups should not generate new definitions when possible (#1367)
* if the group does not define per property exclusion, then remove possible obsolete property exclusions

* if the group is using only the default group, then is as not defining a group

* test that the user does not get a new alias just because another property pf the same object has some groups

* use strict comparison
2018-07-26 14:14:26 +02:00
Guilhem N
8db415afce
Merge SWG annotations in manually created @Operation (#1321)
* Merge SWG annotations in manually created `@Operation`

* failing test

* Fix tests
2018-06-02 13:48:44 +02:00
Guilhem Niot
c1fb7abfb8 Support references to config parameters 2018-05-10 19:10:13 +02:00
Asmir Mustafic
4253ff6b67 Merge pull request #1277 from goetas/bazinga-hateoas
Add basic BazingaHateoasBundle support
2018-05-05 14:49:17 +02:00
Guilhem N
1680ba3481
Merge pull request #1294 from Hexanet/fix-link-unlink-methods
Ignore unsupported HTTP methods
2018-04-20 18:57:39 +02:00
Floran Brutel
22c6eb5958
Add log when there are no valid http methods 2018-04-20 10:43:00 +02:00
Baptiste Lafontaine
c90f2a11c1 Load class NelmioApiDocBundle annotations 2018-04-16 13:46:06 +02:00
Guilhem N
6263ed8479
Merge pull request #1243 from ManInTheBox/proper-fos-rest-describer-pattern-setting
Fix #1239: FosRestDescriber properly configures Parameter#pattern property
2018-03-24 09:37:54 +01:00
Zarko Stankovic
e83856ad9a Refactored code to achieve the logic we want for pattern and format. 2018-03-23 19:46:54 +01:00
Guilhem Niot
9bf00b5196 Support @Model through ref 2018-03-22 18:37:29 +01:00
Javier Spagnoletti
ec851ca65c Allow to filter routes by host (#1121) 2018-03-17 10:37:54 -03:00
Zarko Stankovic
5a1dfa6ead Added support for "format" field for Constraint objects. 2018-03-15 19:09:51 +01:00
Zarko Stankovic
499886deab Fix #1239: FosRestDescriber properly configures Parameter#pattern property.
Minor bugfix that configures `Parameter#pattern` property instead of `Parameter#format`.
Tests provided that prove this implementation works as expected.
2018-02-27 15:42:40 +01:00
Guilhem N
296c63d21c
Support references to config definitions (#1232)
* Support references to config definitions

* Add type hint

* Add a test
2018-02-19 10:49:52 +01:00
Martijn van Kempen
c72085a507 Added test for the Symfony constraints (#1213)
* Added test for the Symfony constraints

* Added missing ,

* Removed whiteline

* Moved test from JMS to FunctionTest

* Style ci changes

* Removed unused code

* Removed use
2018-02-05 18:39:58 +01:00
Dragos Protung
b4c3dcd6ae Added support for @Security annotations (#1201)
* Added support for `@Security` annotations

* Don't output empty tag and security if none defined
2018-01-25 21:11:34 +01:00
Guilhem N
393a6c061e
Add areas support (#1169)
* Add areas support

* Document the Areas feature

* Allow to expose swagger area as JSON

* Fixes

* last fixes
2018-01-05 13:08:02 +01:00
Guilhem Niot
eb77f3708c Cleanup 2018-01-04 11:34:23 +01:00
Guilhem N
48107de67d
Merge branch 'master' into complex_groups 2017-12-21 17:17:36 +01:00
Guilhem Niot
a4fe1f8078 Fix CS 2017-12-17 10:44:07 +01:00
Kori
29ec20bda1 Fix exception when attempting to read swagger annotation for virtual property (#1136)
* Fix exception when attempting to read swagger annotation for virtual property

* drop jms 1.0, add stopwatch for dependency
2017-12-09 14:31:56 +01:00
Yi Ping
d4bf23bcfb Fix complex groups for jms serializer 2017-12-08 10:38:49 +08:00
Vladislav Kopaygorodsky
0baa677515 Reading form recursively down(nested form) (#1087)
* Added support for EntityType in FormModel Describer. Reading form recursively down. Modified formSupport test

* codestyle fixes
2017-09-20 07:18:58 +02:00
Guilhem Niot
b8479d02e1 Add JMS serializer support 2017-07-25 10:09:41 +02:00
Guilhem Niot
c7367d6644 Add a controller exposing the documentation in json 2017-06-26 11:32:23 +02:00
Guilhem Niot
8eb084908d Add forms support 2017-06-24 19:54:48 +02:00
Guilhem Niot
d1761826ab Merge pull request #1010 from nelmio/groups
Add groups support
2017-06-14 12:26:52 +00:00
Guilhem Niot
de40660341 Add groups support 2017-06-13 13:34:26 +02:00
Guilhem Niot
2422156f27 Fix 2017-06-02 21:30:31 +02:00
Guilhem Niot
ef4f587d33
Support @SWG\Tag 2017-03-17 19:45:46 +01:00
Guilhem Niot
ebe2bdf4d6
Get ride of Swagger-Php parser 2017-03-16 19:52:18 +01:00
Guilhem N
b1d95d966d
[SwaggerPhp] Only parse controllers 2017-01-25 18:44:57 +01:00