35 Commits

Author SHA1 Message Date
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
Maxime Perrimond
fafd243f55 Fix Fos rest query param with map 2020-10-22 11:30:34 +02:00
Pavel Stejskal
a4c4ffcf3b
Fix incorrect media types (#1712) 2020-09-01 16:42:55 +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
b88793267e Use FOSRest *Param::$key when defined 2020-02-21 10:42:13 +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
Sander Marechal
b61820eb4b Fix fatal error when using a Constraint as requirement 2017-08-10 12:16:50 +02:00
Guilhem Niot
98980fa680 [FosRestDescriber] Don't override parameter type if already specified 2017-07-05 14:28:48 +02:00
Baptiste Lafontaine
c9c5042186 Handle FOSRestBundle QueryParam required QueryParams 2017-03-20 10:44:29 +01:00
Guilhem N
c797269bef
Change the vendor to "Nelmio" 2016-12-29 12:09:26 +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
Guilhem N
fd92284b83
Make most classes final 2016-11-30 15:05:57 +01:00
Ener-Getick
8c71270c66
Update the extension 2016-08-04 22:36:20 +02:00
Ener-Getick
cbd0b453ce
Register the FOSRestDescriber 2016-08-04 22:34:46 +02:00
Ener-Getick
243680c73c
Fix CS 2016-08-04 22:30:44 +02:00
Ener-Getick
ffda7801f6
Add FOSRestBundle support 2016-08-04 22:27:10 +02:00