710 Commits

Author SHA1 Message Date
Guilhem Niot
d558560f61
Remove deprecated features (#1640)
* Remove deprecated features

* Fix cs
2020-05-31 18:18:29 +02:00
Guilhem Niot
58f791c0f7 Merge branch '3.x' 2020-05-31 17:54: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
Mantis Development
239a26d014
Fix Declaration must be compatible error with tests (#1638)
* Fix Declaration must be compatible error with tests

* Fix phpunit deprecation warnings for @expectedExceptions

* Add phpunit.bat for windows users, bump phpunit to version 7.5
2020-05-31 15:16:51 +02:00
Mantis Development
b3c53beead
Add dump command to print out swagger JSON. (#1537) (#1540)
* Add dump command to print out swagger JSON.

Command outputs to stdout, so can be redirected to a file.
Pretty prints output by default.
--no-pretty can be passed to remove whitespace from json output if it does not need to be human readable

* Update for styleci corrections

* Fix CS and add type hint

* REbase + Updates to documentation of dump command.

* Remove defaultName - config file specifies this
Add return value to dump command

* Update for OA3

* Add a test case

* update command name

* Fix the tests

Co-authored-by: Guilhem Niot <egetick@gmail.com>
Co-authored-by: Guilhem Niot <guilhem.niot@gmail.com>
2020-05-31 11:39:50 +02:00
Guilhem Niot
b31522af7e
Fix branch name 2020-05-31 11:35:34 +02:00
Guilhem Niot
cd4aa3705e
Update dev version 2020-05-31 11:35:13 +02:00
Guilhem Niot
ffa61b5f30 Merge branch '3.x' 2020-05-31 11:33:59 +02:00
Guilhem Niot
f9f5fad4d8
Update dev version 2020-05-31 11:33:40 +02:00
Mantis Development
5e6b894bdc
Fix User Warning: Multiple definitions for @OA\\Property()->title (#1630)
* Fix User Warning: Multiple definitions for @OA\\Property()->title

* Add test

* Pass CI..
2020-05-31 10:30:13 +02:00
Guilhem Niot
4027fe8b6c
Fix access to api->components in RouteMetadataDescriber (#1635)
* Fix access to api->components in RouteMetadataDescriber

* cs
2020-05-30 18:24:51 +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
Fabien Salathe
3f90ef6ce9
Fix undefined property $this->mediaType (#1633) 2020-05-29 18:53:58 +02:00
Guilhem Niot
b2b0e60617 Merge branch 'v3' 2020-05-29 18:20:46 +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
Fabien Salathe
dc7399c41d
Fix undefined function in OA\Schema (#1629)
`$property->getTitle()` should be `$property->title`
2020-05-28 19:19:43 +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
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