47 Commits

Author SHA1 Message Date
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
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
Ener-Getick
02601125bd
Make the document generated valid 2016-08-01 19:58:57 +02:00
Ener-Getick
c37d615071
Update dependencies 2016-07-29 18:40:56 +02:00
Ener-Getick
71f4458085
Use ener-getick/swagger 2016-07-28 10:20:59 +02:00
Ener-Getick
d7c05edffc
Add type hints 2016-07-15 00:40:30 +02:00