92 Commits

Author SHA1 Message Date
Guilhem Niot
40ad9c91f7
fix 2022-09-26 09:13:39 +02:00
Guilhem Niot
383fb78360 Add Api-Platform 3.x support 2022-09-25 21:32:09 +02:00
Emil Masiakowski
f808eafbe4
Read discriminator mapping from file configuration (#2034)
* Read discriminator mapping from file configuration

* Use more realistic test data
2022-09-25 19:56:43 +02:00
Guilhem Niot
8e8c13ba57
Merge pull request #2012 from magnetik/autoconfigure
Add autoconfigure for model describer tag
2022-08-29 22:57:41 +02:00
Asmir Mustafic
883049a9e0 use the configured context factory to create the serialization context 2022-08-22 20:45:23 +02:00
Baptiste Lafontaine
c39a217ec4 Add autoconfigure for model describer tag 2022-07-18 17:59:11 +02:00
Guilhem Niot
ade4b6c17c
Merge branch 'master' into constraint_groups 2021-12-19 11:38:47 +01:00
Gemorroj
a041c69a0c
try fix #1876 (#1919) 2021-12-11 14:32:00 +01:00
Guilhem Niot
a184cb8ef4
Fix deprecations (#1923) 2021-12-11 14:19:43 +01:00
Christopher Davis
477442588a Fix CS 2021-11-06 07:42:38 -05:00
Christopher Davis
7357de9c16 Add a Configuration Option to Enable Validation Groups
If this was turned on by default, that seems like a _large_ BC break as
folks entire OpenAPI doc could change underneath them.

The config option defaults to false and users can enable it if they
desire.
2021-11-06 07:13:56 -05:00
Guilhem Niot
200ec0fdcb Merge branch '3.x' 2021-11-04 00:06:42 +01:00
Frederik Holz
aa18c6c83b
[3.x]: Hide the default section per area with new config parameter (#1868)
* Add new config node disable_default_routes to prevent registering RouteDescriber to specific areas which allowes disabling rendering of default routes, Adjust tests accordingly

* Add documentation for new config variable

* Change disable_default_routes to filter route collection instead of disabling route describer, Add test for new handling in FilteredRouteCollectionBuilder

* Change naming of matching method for disabling default routes

* Fix codestyle issue

* Fix codestyle issue

* Change naming of dataProvider to match testing name

Co-authored-by: Frederik Holz <team-orange@auxmoney.com>
2021-10-06 19:28:59 +02:00
Guilhem Niot
9c729ab7b7
Fix support without twig (#1878)
* fix support without twig

* Support null openApiRenderer

* Register a twig extension instead of registering twig function at runtime

* fix tests
2021-09-22 23:43:32 +02:00
Asmir Mustafic
985b43fb60
log name collisions (#1862) 2021-08-17 21:51:11 +02:00
Guilhem Niot
a7573897fb Merge branch '3.x' 2021-04-23 15:18:59 +02:00
Alexander M. Turek
a2191826de Added a class to the nelmio_api_doc.generator_locator service definition 2021-04-18 17:48:12 +02:00
Guilhem Niot
bc2b3f7530 Merge branch '3.x' 2020-12-29 10:30:06 +01:00
Guilhem Niot
e57ede23ed Use annotations reader without cache 2020-12-29 10:27:09 +01:00
Guilhem Niot
363fd26f7c Merge branch '3.x' 2020-12-10 22:28:55 +01:00
Guilhem Niot
90f835f1ef
Allow to not document form types fields (#1752)
* Allow the usage of `@SWG\Definition` on form types

* Allow to not document form types fields

* Reduce the number of changes
2020-12-02 15:38:38 +01: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
Guilhem Niot
d558560f61
Remove deprecated features (#1640)
* Remove deprecated features

* Fix cs
2020-05-31 18:18:29 +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
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
Maxime Helias
1464865de1 Remove deprecated notice about controller_name_converter 2019-11-19 17:23:12 +01:00
Serhii Kondratiuk
ccad10aae1 Added name_patterns filter option (#1504) 2019-04-16 17:22:50 +02:00
Asmir Mustafic
d6ea99420e Allow model describers on jms custom types (#1495)
* allow model describers on jms custom types

* add fallback describer

* test custom type def

* remove object_fallback describer from the container when jms is not active
2019-04-16 12:13:33 +02:00
Guilhem N
b171794cce
Merge pull request #1460 from babaorum/areas-in-annotation
add a way to filter areas on route by annotation
2019-02-13 19:32:19 +01:00
Guilhem N
78568a3150
Merge pull request #1433 from goetas/serializer-v2
Allow jms/serializer v2.0 and willdurand/Hateoas v3.0
2019-02-13 19:25:51 +01:00
babaorum
dcfa5e23e5 add a way to filter areas on route by annotation 2019-02-05 22:43:18 +01:00
Asmir Mustafic
0fb5d7afa2
jms 2.0 groups tested 2019-01-26 21:03:21 +01:00
Asmir Mustafic
66bcf02903
when the naming strategy is not available, we are using jms/serializer 2.0 2019-01-26 20:55:29 +01:00
mantis
7a5c8a2e0d Fix: Deprecation: A tree builder without a root node is deprecated since symfony 4.2 (#1457)
* Fix: Deprecation: A tree builder without a root node is deprecated since Symfony 4.2 and will not be supported anymore in 5.0.

* Fix: Deprecation: A tree builder without a root node is deprecated since Symfony 4.2 and will not be supported anymore in 5.0.
2019-01-25 18:17:45 +01:00
Guilhem N
cd40d556cb
Merge pull request #1404 from bifidokk/area-docs
Separated documentation for areas
2018-10-06 14:44:53 +02:00
Guilhem Niot
97b722f97d Last fixes 2018-10-06 14:42:47 +02:00
Guilhem N
f6ca599b23
Fixes 2018-10-05 16:35:25 +02:00
Danil
8fad5a4025 Remove documentation from route builder 2018-10-05 15:14:36 +05:00
Danil
8692c1245e Pr fixes 2018-10-05 10:36:48 +05:00
Guilhem N
31ae375ab5
Make sure alternative names use the exact names specified (#1384)
* Make sure alternative names use the exact name specified

* Document the feature

* Cs
2018-08-26 22:15:44 +02:00
Danil
e1654628a6 Fix default documentation 2018-08-14 15:09:29 +05:00
Danil
a9120e95bd default documentation 2018-08-14 12:30:38 +05:00
bifidokk
f63ab23fe5 Fix tests 2018-07-27 09:44:19 +05:00
bifidokk
5a6145fac8 Add docs for areas 2018-07-26 10:16:10 +05:00
Asmir Mustafic
29f3042754 jms serializer groups can be nested (#1366) 2018-07-25 17:58:28 +02:00
Asmir Mustafic
ab005c4129 Implement alternative naming system via configuration (#1312)
* implement alternative naming system via configuration

* use strict comparison

* test di configs

* rever

* test naming aliases are applied

* set "default" as default area

* test names are passed to generators

* cs formatting

* added extra check for built-int types

* cs

* added documentation about alternative names

* allow to create the same alias in two different areas

* document and test better aliasing strategy

* specify that the last matching rule is used

* Make last matching rule wins

* Fix documentation
2018-06-10 09:56:38 +02:00
Asmir Mustafic
4253ff6b67 Merge pull request #1277 from goetas/bazinga-hateoas
Add basic BazingaHateoasBundle support
2018-05-05 14:49:17 +02:00
Floran Brutel
22c6eb5958
Add log when there are no valid http methods 2018-04-20 10:43:00 +02:00
Javier Spagnoletti
ec851ca65c Allow to filter routes by host (#1121) 2018-03-17 10:37:54 -03:00
Guilhem N
f193fdb1f1
Inject the AnnotationsReader in Model describers instead of internal classes (#1203) 2018-01-24 19:58:38 +01:00