Adir Kuhn
71f0cfddcb
Supports reflection for routes configured in PHP files. ( #1701 )
...
By default the PHP configuration routes returns an array with the controller name and method, since the reflection class was typed for string only this was causing an exception when the user was not using YAML or XML configuration.
This changes removes the string type hint from the method and checks if it's an array or string to do the reflection.
Co-authored-by: Adir Kuhn <adir@123inkt.nl>
2020-08-11 16:46:05 +02:00
Guilhem Niot
edf6b70175
Apply StyleCI fixes
2020-08-06 10:26:59 +02:00
Guilhem Niot
ff4726f38d
Update StyleCI config
2020-08-06 10:25:35 +02:00
Guilhem Niot
0d2552edab
Update the links in the README
2020-07-24 16:58:58 +02:00
Guilhem Niot
0fd910b34a
Update the installation command
2020-07-24 16:57:39 +02:00
SAMUEL NELA
0e7803888a
Excluded tests from classmap ( #1521 )
2020-07-24 15:48:12 +02:00
Guilhem Niot
b9d49e5799
Update CHANGELOG.md
2020-07-24 15:45:52 +02:00
Guilhem Niot
523d28e955
Add annotations support at methods level when using the JMS serializer ( #1682 )
2020-07-18 13:31:41 +02:00
Guilhem Niot
8948d5418b
Add methods metadata support for models ( #1678 )
...
* Add methods metadata support for models
* fix cs
2020-07-12 14:54:39 +02:00
Guilhem Niot
f998c1632f
Fix Changelog
2020-07-11 18:05:11 +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
pratyam
fe39acd6a8
Bugfix/remove pattern from property expression message error ( #1670 )
...
* remove pattern added from the Expression Violation message.
This string confuses the API client showing a violation message instead of having a Regex. Any informatory message for the client should be placed in "description"
* fix tests
* fix typo
2020-07-04 16:27:40 +02:00
Guilhem Niot
8e0713be53
Always use the SerializerExtractor (from the PropertyInfo component) ( #1665 )
...
* Always use the SerializerExtractor (from the PropertyInfo component)
* typo
2020-06-22 16:37:32 +02:00
Guilhem Niot
1f4dfb0b2b
Add FOSRestBundle 3.x support ( #1637 )
...
* Add FOSRestBundle 3.x support
* fix cs
* Update phpunit config
* Fix deprecations
* Fix tests when running with fosrest < 2.8
* revert change
2020-05-31 17:47:18 +02:00
Guilhem Niot
b31522af7e
Fix branch name
2020-05-31 11:35:34 +02:00
Guilhem Niot
f9f5fad4d8
Update dev version
2020-05-31 11:33:40 +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
5e8f7290e8
Change arrow function to an IE11 compatible function
...
Imports https://github.com/api-platform/core/pull/2899 and fixes https://github.com/nelmio/NelmioApiDocBundle/issues/1517
2020-05-29 18:15:57 +02:00
Guilhem Niot
2a78b42a94
Merge pull request #1622 from goetas/jms-inline
...
Add support for JMS Serializer inline property feature
2020-05-15 20:45:36 +02:00
Asmir Mustafic
2fd95e2242
add support for jms serializer inline property feature
2020-05-07 20:02:10 +02:00
Guilhem Niot
be89b2be6c
Merge pull request #1619 from katin-dev/fix_preloader
...
Help opcache.preload to load Swagger annotation class
2020-05-01 21:30:45 +02:00
katin-dev
f450cd29fb
Help php opcache.preload to load Swagger annotation class
2020-04-28 17:43:45 +03:00
Guilhem Niot
e39b7c5d2b
Merge pull request #1618 from pgrimaud/master
...
Fix typos
2020-04-22 07:50:35 +02:00
Pierre Grimaud
3b6fbf936d
Fix typos
2020-04-21 23:47:33 +02:00
Guilhem Niot
2b006dab84
Merge pull request #1617 from svetlyi/master
...
Exception message fix for array properties
2020-04-21 17:15:06 +02:00
Ivan Pidikseev
2ae2e008fe
Exception message fix for array properties
2020-04-16 14:24:25 +03:00
Guilhem Niot
ab014fe032
Merge pull request #1602 from katin-dev/master
...
Fix generating example for Assert\Choice when choices are object not array
2020-03-31 12:05:08 +02:00
Guilhem Niot
b3c663dd6d
Merge pull request #1608 from simPod/upgrade-ui
...
Upgrade Swagger UI to 3.25.0
2020-03-29 10:29:39 +02:00
Simon Podlipsky
75c9db256a
Upgrade Swagger UI to 3.25.0
2020-03-22 21:33:04 +01:00
katin-dev
97530a6eee
#1601 test for Assert\Choice results in numeric array
2020-03-14 15:36:59 +03: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
katinsv
82aa08e5ff
Fix Assert\Choice when choices are object not array
2020-03-13 16:59:56 +03:00
Guilhem Niot
eb99b32151
Merge pull request #1598 from loverg-c/fix/invalidTag
...
Fix invalid tag which doesn't has description
2020-03-08 10:19:36 +01:00
Clément Lovergne
9ba4735b78
Fix invalid tag which doesn't has description
2020-03-05 13:39:58 +01:00
Guilhem Niot
0fcf2d5c9a
Merge pull request #1591 from nelmio/analysis-e7YKjA
...
Apply fixes from StyleCI
2020-02-23 17:51:12 +01:00
Guilhem Niot
d58b4a4d66
Apply fixes from StyleCI
2020-02-23 16:50:24 +00:00
Guilhem Niot
974a81d344
Merge pull request #1575 from FilipBenco/master
...
Extensible property describing
2020-02-23 17:49:10 +01:00
Guilhem Niot
f5fa7d751a
Merge pull request #1589 from nelmio/FOSRestkey
...
Use FOSRest *Param::$key when defined
2020-02-21 11:00:04 +01:00
Guilhem Niot
b88793267e
Use FOSRest *Param::$key when defined
2020-02-21 10:42:13 +01:00
Guilhem Niot
ebf7fa589b
Merge pull request #1578 from smoench/remove-fosrest-on-symfony5-test
...
remove FOSRest on symfony 5 test runs
2020-02-21 10:27:25 +01:00
Guilhem Niot
e8c0cc170d
Merge pull request #1588 from phansys/php74
...
PHP 7.4 is already released
2020-02-21 10:25:30 +01:00
Guilhem Niot
f8bc364245
Merge pull request #1587 from phansys/reflection_docblock
...
Allow "phpdocumentor/reflection-docblock:5.0"
2020-02-21 10:24:56 +01:00
Javier Spagnoletti
11111e418c
PHP 7.4 is already released
2020-02-19 16:41:28 -03:00
Javier Spagnoletti
1e800c48e6
Allow "phpdocumentor/reflection-docblock:5.0"
2020-02-19 16:26:38 -03:00
Filip Benčo
b3f83d00cd
Merge pull request #1 from nelmio/master
...
Update from upstream
2020-02-18 21:21:41 +01:00
Filip Benčo
bb19ed7568
Revert ModelDescriberAwareInterface
2020-02-18 21:08:48 +01:00
Filip Benčo
90bae6738a
Update after PR
2020-02-18 20:45:58 +01:00
cyberemissary
94f7715f68
Refactor Existing Ref parsing in RouteMetadataDescriber
2020-02-06 18:44:17 -05:00
Guilhem Niot
3710e95d26
Rework PR
2020-01-09 21:45:37 +01:00
cyberemissary
9b9dbe69dd
Added describer that removes duplicate parameters when using $ref.
2020-01-09 14:29:52 -05:00