Guilhem Niot
52e7fc4de1
Use the same root context everywhere
2022-04-30 20:07:44 +02:00
Alex Kalineskou
cc97b0ba45
Add support for php attributes ( #1932 )
...
* Add support for php attributes
* Fix tests for php 8.1
* Simplify the annotations
* Revert the changes to the tests
* CS
* Test FOSRest parsing of attributes
* CS
* typo
* CS
* Test fetchArticle php 8.1 attributes
* Fix namespaces
Co-authored-by: Guilhem Niot <guilhem@gniot.fr>
2021-12-21 16:16:14 +01:00
Alexey Alshenetsky
14383f4ee5
Add support for zircore/swagger-php 4.0 ( #1916 )
...
* add zircore/swagger-php v4 to composer.json
* fix incompatibilities
* add compatibility with 3.2
* Apply fixes from StyleCI
* mark SetsContextTrait as internal
* Bump php version
Co-authored-by: Alexey <alshenestky@icloud.com>
Co-authored-by: Alexey Alshenetsky <alshenetsky@users.noreply.github.com>
Co-authored-by: Guilhem Niot <guilhem@gniot.fr>
2021-12-11 14:39:04 +01:00
Guilhem Niot
3832ad3481
CS
2021-04-23 15:21:04 +02:00
Guilhem Niot
14975b3140
Update RouteDescriber/FosRestDescriber.php
...
Co-authored-by: Javier Spagnoletti <phansys@gmail.com>
2021-03-26 22:51:40 +01:00
tlallement
d6a2d1240a
Fix for PHP 7.1
2021-03-24 18:10:45 +01:00
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
56d4b78bf1
CS Fix
2021-03-16 10:48:12 +01:00
Thomas Lallement
a945a47e32
CS Fixes
2021-03-16 10:46:21 +01:00
Thomas Lallement
7f9b00d620
Code improvements and add unit test
2021-03-16 10:40:12 +01:00
Thomas Lallement
f2c75ebc9d
Fix Open API doc for DateTime requirements
...
When using the following requierement:
```
@Rest\QueryParam(name="updatedFrom", strict=true, nullable=true, requirements=@Constraints\DateTime("Y-m-d\TH:i:s"))
```
According to the OpenAPI 3.0 documentation https://swagger.io/specification/ , we should have "format": "date-time" rather than "format": "DateTime" in the generated doc
2021-03-11 19:06:17 +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
e1700ba4b5
Fix the detection of references in the RouteMetadataDescriber
2020-11-01 11:41:49 +01:00
Maxime Perrimond
fafd243f55
Fix Fos rest query param with map
2020-10-22 11:30:34 +02:00
Guilhem Niot
416d1f2d2a
Merge branch '3.x'
2020-09-20 20:38:43 +02:00
Rishiraj Purohit
b579dbe3dc
remove internal tag to avoid deprecation warnings
2020-09-20 12:53:27 +02:00
Pavel Stejskal
a4c4ffcf3b
Fix incorrect media types ( #1712 )
2020-09-01 16:42:55 +02:00
Guilhem Niot
282724580c
Fix a wrong use of operation->security ( #1700 )
2020-08-11 16:44:43 +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
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
Guilhem Niot
3710e95d26
Rework PR
2020-01-09 21:45:37 +01:00
Serhii Polishchuk
74fcffdc37
Fixed names and multi for array query params ( #1509 )
2019-04-23 21:12:44 +02:00
Guilhem N
a3800fb29a
Fix CS
2019-04-20 13:21:54 +02:00
Guilhem N
90293e171f
Fix map support of FOSRestBundle
2019-04-20 13:18:00 +02:00
Guilhem N
0e72b64e3c
Respect the spec in the FosRestDescriber ( #1390 )
2018-08-30 00:41:53 +02:00
Jerzy Lekowski
cf0857af64
Remove unused variable ( #1340 )
2018-06-07 20:27:21 +02:00
Guilhem N
dbfa4ed8bd
Put RequestParam annotations in body ( #1328 )
...
* Put RequestParam annotations in body
* Fix tests
* Cs
2018-06-01 16:50:50 +02:00
Zarko Stankovic
e83856ad9a
Refactored code to achieve the logic we want for pattern and format.
2018-03-23 19:46:54 +01: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
79482bf7a2
Add a missing variable initialisation
2018-01-26 07:37:03 +01:00
David Buchmann
75cf1201ed
Apply fixes from StyleCI
2017-12-22 17:42:18 +00:00
Guilhem Niot
a4fe1f8078
Fix CS
2017-12-17 10:44:07 +01:00
Jasper Ras
d6913dc78f
fix: map route requirements to parameter pattern instead of format ( #1081 )
2017-09-24 00:57:06 +02:00
Sander Marechal
b61820eb4b
Fix fatal error when using a Constraint as requirement
2017-08-10 12:16:50 +02:00
Guilhem Niot
7e46cc8899
Merge pull request #1034 from nelmio/GuilhemN-patch-1
...
[FosRestDescriber] Don't override parameter type if already specified
2017-07-11 18:41:54 +01:00
goyt
69169b0457
since a path variable must be required, change back
2017-07-05 23:41:25 +02:00
Guilhem Niot
98980fa680
[FosRestDescriber] Don't override parameter type if already specified
2017-07-05 14:28:48 +02:00
goyt
fce21e78b0
small typo-a
2017-07-03 23:46:15 +02:00
goyt
35f83640d6
Required for PathVarriables is no longer overwritten, if already set. Type is no longer overwritten if already set
2017-07-03 23:39:42 +02:00
Baptiste Lafontaine
c9c5042186
Handle FOSRestBundle QueryParam required QueryParams
2017-03-20 10:44:29 +01:00
Guilhem Niot
12247cb56e
Add return types
2017-03-17 19:37:51 +01:00
Guilhem N
a098f3f4e9
Remove the @ApiDoc
annotation
2017-01-09 12:21:53 +01:00
Guilhem N
c797269bef
Change the vendor to "Nelmio"
2016-12-29 12:09:26 +01:00
Guilhem N
32dbbade38
Fix _format path parameter removal
2016-12-01 17:19:33 +01:00
Baptiste Lafontaine
fd6d9ac7a7
Fix usage of FOS QueryParam::getKey() that is protected since 1.8
2016-11-30 16:06:20 +01:00