Guilhem Niot
282724580c
Fix a wrong use of operation->security ( #1700 )
2020-08-11 16:44:43 +02:00
Guilhem Niot
eeb4a8b90e
Fix ServerVariable management ( #1694 )
...
* Fix ServerVariable management
* Fix cs
* Apply StyleCI fixes
2020-08-11 16:44:05 +02:00
Guilhem Niot
23fdbf0412
Merge branch '3.x'
2020-08-06 10:29:17 +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
Filip Benčo
9592c7ebfa
Fix nullable array properties ( #1697 )
...
* Fix nullable array properties
* Fix tests & Remove weird leftover dump
* Fix test
Co-authored-by: Filip Benčo <filip.benco@websupport.sk>
2020-08-06 10:22:59 +02:00
Guilhem Niot
34598be7ee
Merge branch '3.x'
2020-07-24 17:00:10 +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
Guilhem Niot
35b84d1298
Fix @charliefancelli's report ( https://github.com/nelmio/NelmioApiDocBundle/issues/1689 )
2020-07-24 15:50:01 +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
69df4c38b5
Disable the OperationId processor ( #1685 )
...
* Disable the OperationId processor
* Fix CS
* CS
2020-07-24 08:37:58 +02:00
Guilhem Niot
a82a1c1416
Fix @OA\JsonContent
usage in the docs
2020-07-20 20:12:23 +02:00
Guilhem Niot
9de23eb4a5
Merge '3.x'
2020-07-18 13:37:58 +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
545432f7ec
Support annotations for virtual properties
2020-07-18 10:10:37 +02:00
Guilhem Niot
fa3158ce67
Document the support of OA annotations on methods
2020-07-12 15:21:14 +02:00
Guilhem Niot
ad4e5551f5
Merge remote-tracking branch 'origin/3.x' into HEAD
2020-07-12 15:07:56 +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
d167685f42
Merge remote-tracking branch 'origin/3.x' into HEAD
2020-07-11 18:12:14 +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
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
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
aa8dcf06d8
Update swagger-ui ( #1672 )
2020-07-04 16:26:54 +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
3623bdb1ea
Fix the Util class manipulation of array of objects ( #1653 )
...
* Fix the Util class manipulation of array of objects
* fix cs
2020-06-17 14:12:44 +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
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