tlallement
0e7ebe5650
Small fixes for RFC3339 and new assertion
2021-03-24 18:01:32 +01:00
Thomas Lallement
a72588861f
Add support for 'c' format
2021-03-16 11:05:00 +01:00
Thomas Lallement
7f9b00d620
Code improvements and add unit test
2021-03-16 10:40:12 +01:00
Guilhem Niot
1b4437d88a
Merge pull request #1776 from chrisguitarguy/discriminator_field
...
Support Polymorphism via the Symfony Discriminator Map
2021-02-08 22:46:49 +01:00
Christopher Davis
9299c0e52e
Support OpenAPI Polymorphism in ObjectModelDescriber
...
This is the default "symfony support" class, so seems like the right
place.
2021-02-01 08:56:31 -06:00
Paul des Garets
eeb0b4efba
Support oauth2 scopes in Security annotation
2021-01-26 19:08:53 +01:00
Guilhem Niot
42365c71cc
Fix a regression about manual paths in operation no longer being taken into account
2020-12-27 19:14:14 +01:00
Guilhem Niot
363fd26f7c
Merge branch '3.x'
2020-12-10 22:28:55 +01:00
Guilhem Niot
0912c85a0d
Improve error when the items type of an array is not specified
2020-11-20 17:06:56 +01:00
Guilhem Niot
e9914097f7
Merge pull request #1740 from nelmio/refparams
...
Fix the detection of references in the RouteMetadataDescriber
2020-11-03 10:32:13 +01:00
Guilhem Niot
412eff9805
Test the support of QueryParam::$map
2020-11-03 10:29:37 +01:00
Guilhem Niot
e1700ba4b5
Fix the detection of references in the RouteMetadataDescriber
2020-11-01 11:41:49 +01:00
Guilhem Niot
d167685f42
Merge remote-tracking branch 'origin/3.x' into HEAD
2020-07-11 18:12:14 +02:00
Guilhem Niot
f420532121
Support using annotations only at the class level of controllers ( #1668 )
...
* Support using annotations only at the class level of controllers
* Fix dependencies
* Bump dependency
2020-07-11 17:53:09 +02:00
Guilhem Niot
7d9573ddf6
Move the OpenApi processing to ApiDocGenerator ( #1671 )
...
* Move the OpenApi processing to ApiDocGenerator
* Temporary fix for https://github.com/zircote/swagger-php/pull/791
* Stop using the ModelRegistry in OpenApiPhpDescriber
2020-07-06 19:50:34 +02:00
Filip Benčo
d932b06bbb
Add support for compound properties ( #1651 )
...
* Add support for compound properties
* Fix CS & Tests
* Another fixing :D
* Final CS fix
* Allow complex compound properties
* cs
* Update the Upgrading guide
* Update php doc
* Add Support for Nullable properties
* Fix CS
* Fix CS
* Add Support for Nullable Types & Schemas as in OA3
* Update Nullable Property handling
* CS
* Fix tests
* Accept also nullable config for Alternative model names
* Refactor nullable refs
* Fix CS & Tests
* Another CS
* Revert "Another CS"
This reverts commit 03ada32b3263f3537d2af63f0abe79bd4a9ac0b5.
* Revert "Fix CS & Tests"
This reverts commit 369f2ccd170aebeeb9d87e9e00cba5cea62d5529.
* Revert "Refactor nullable refs"
This reverts commit 91cdf6fd0130f3ebf415de99f8a91edbc764255e.
* Revert "Revert "Refactor nullable refs""
This reverts commit 0e50fc1938ce3e620fc655a7d1e9284a9f8c24f0.
* Revert "Revert "Fix CS & Tests""
This reverts commit 228d3ca994eb4622c4db81aaa5f32845862e5616.
* Revert "Revert "Another CS""
This reverts commit a5b08dedf5bca8fb711b816c62bed2de9f1c9521.
* Improve nullable refs description
Co-authored-by: Filip Benčo <filip.benco@websupport.sk>
Co-authored-by: Guilhem Niot <guilhem.niot@gmail.com>
2020-06-16 13:11:53 +02:00
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