146 Commits

Author SHA1 Message Date
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
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
Asmir Mustafic
2fd95e2242
add support for jms serializer inline property feature 2020-05-07 20:02:10 +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
smoench
6f7c1fa870
remove FOSRest on symfony 5 test runs as FOSRest does not support symfony 5 yet 2019-12-20 10:52:36 +01:00
smoench
0d6a1591c8
fix compatibility with symfony 5 2019-12-19 15:41:14 +01:00
Maxime Helias
bfcbf59caf Allow Symfony 5 2019-11-29 13:59:27 +01:00
Maxime Helias
3888d6b976 Fix build travis 2019-11-20 12:15:00 +01:00
Paweł Mikołajczuk
14e4eedbad Merge pull request #1522 from ahilles107/port/options_support_in_model
Port/options support in model
2019-06-01 15:31:09 +02:00
Asmir Mustafic
eb255010a0 Support typed embedded relation with willdurand/hateoas 3.0 (#1510)
* allow typed embedded relation with hateoas 3.0

* symfony/framework-bundle 4.2.7 is broken

https://github.com/symfony/symfony/pull/31156

* internal public methods
2019-05-02 10:02:16 +02:00
Asmir Mustafic
65e940f7f8
use jms serialization groups detection 2019-04-17 22:05:30 +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
23b179a481
Fix the test suite (broken due to an update in Api-Platform) (#1498) 2019-04-10 21:07:34 +02:00
Ayrton Ricardo
253e71a46e Provide default host to generated .json documentation (#1492)
* Add default host to the current request host to keep the same behaviour as js does

* Add host to test case

* Revert deleted code

* Revert not needed update on expected result
2019-04-10 20:55:04 +02:00
neFAST
92790b1d28 FIX #1428 Make sure FormInterfaceConfig has a 'documentation' option … (#1429)
* FIX #1428 Make sure FormInterfaceConfig has a 'documentation' option before getting it

FIX #1428

* adding SubmitType to Tests

* Update UserType.php

* Update UserType.php

* Update FunctionalTest.php

* Update FunctionalTest.php

* removed check to see how unit test handles this

* Add test back

* Cs
2019-03-07 08:48:56 +01: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
babaorum
dcfa5e23e5 add a way to filter areas on route by annotation 2019-02-05 22:43:18 +01:00
Asmir Mustafic
fd7b5e1679
fix missing previous recursive call 2019-01-26 21:03:21 +01:00
Asmir Mustafic
0fb5d7afa2
jms 2.0 groups tested 2019-01-26 21:03:21 +01:00
Asmir Mustafic
d15b4123c1
add hateoas v3 compat 2019-01-26 20:55:52 +01:00
Guilhem N
0bca7f377d
Merge pull request #1447 from AyrtonRicardo/master
Change validation to allow fields described as DateTimeInterface.
2019-01-02 23:20:13 +01:00
Romain BigZ Richard
9968027aad feature: Add new validation from constraints.
- Add minimum and maximum from the range annotation
- Add maximum from the LessThan and LessThanOrEqual annotation

FIX: remove the extra date-time format, which was not standard and not in sync with what symfony exposes
Swagger specifies that date-time should follow the RFC3339, and this is what symfony does as default.
2018-12-19 16:25:14 +01:00
Ayrton Ricardo
2f53cc9c12 Add ',' in the end of array 2018-12-10 14:25:08 +01:00
Ayrton Ricardo
2ddf4362c0 Change validation to allow fields described as DateTimeInterface. 2018-12-10 14:21:09 +01:00
Michael Moll
d37a543502 fix codestyle errors 2018-11-11 20:31:50 +01:00
Guilhem Niot
76f25393c5 Fix alternative names issue 2018-11-04 12:24:45 +01:00
Asmir Mustafic
9bae1115d6 jms serializer group names are based on the internal property name, not on the serialized name (#1421) 2018-10-17 17:19:37 +02: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
67ff6bd1e1
Merge pull request #1403 from goetas/boolean-enums
Add boolean enums support to forms
2018-10-04 20:36:41 +02:00
Guilhem N
6c257256b3
Merge pull request #1405 from piotrantosik/choicevalidator
Fix choice annotation with callback method name without class
2018-10-04 20:24:07 +02:00
Ilia Burtsev
346235de97 Add ability to use response objects which defined in configuration 2018-10-02 17:02:17 +07:00
Piotr Antosik
a9d6b3fd46
Fix choice annotation with callback method name without class 2018-09-26 16:51:43 +02:00
Asmir Mustafic
bf01a8e019
add boolean enums support to forms 2018-09-24 17:35:57 +02:00
Pavel Batanov
995ade1c8d Respect property name for constraints 2018-09-11 13:42:50 +03:00
Guilhem N
99833189fd
Ignore Type::$nullable (#1391) 2018-08-30 01:10:36 +02:00
Guilhem N
0e72b64e3c
Respect the spec in the FosRestDescriber (#1390) 2018-08-30 00:41:53 +02:00
Guilhem N
fcb36d8e8d
AssertLength doesn't make the field required (#1389) 2018-08-30 00:32:11 +02:00
eaunitrust
f0b1eb7849 master: RepeatedType added (#1387)
* master: RepeatedType added

* Fix RepeatedType support
2018-08-30 00:16:19 +02:00
Rob Holmes
309f935763 Added support for Doctrine MongoDB ODM 'document' form type (#1377)
* Added support for Doctrine MongoDB ODM 'document' form type

* Simplify code
2018-08-29 23:14:19 +02:00
Asmir Mustafic
bd26696f8f respect jms serializer nested group exclusion 2018-08-26 22:58:35 +02:00
Javier Spagnoletti
df9893428e [JMSModelDescriber] Allow to use free form objects from JMS serialization (#1368)
* [JMSModelDescriber] Allow to use free form objects from JMS serialization

* Remove unused variable

* Refactor `describeItem()`

* Add more tests

* early detect of free form objects

* Add test for array property without type

* Merge `findPropertyType()` and `registerPropertyType()` methods

* Update `registerPropertyType()` in order to set "object" as type for arrays with undefined item types

* Set "additionalProperties" definition for arrays without defined items

* Simplified `registerPropertyType()`

* Merged `registerPropertyType()` into `describeItem()`

* Fix comment

* Fix comment
2018-08-21 17:41:32 +02:00
Danil
a9120e95bd default documentation 2018-08-14 12:30:38 +05:00
bifidokk
6bce4e0a8a Fix cs 2018-07-27 09:59:45 +05:00
bifidokk
f63ab23fe5 Fix tests 2018-07-27 09:44:19 +05:00
Asmir Mustafic
09e6f30572 Jms serializer default groups should not generate new definitions when possible (#1367)
* if the group does not define per property exclusion, then remove possible obsolete property exclusions

* if the group is using only the default group, then is as not defining a group

* test that the user does not get a new alias just because another property pf the same object has some groups

* use strict comparison
2018-07-26 14:14:26 +02:00
imajim
6e04137ee6 CollectionType not working in example tab (#1360)
* CollectionType not working in example tab

Removed just line 179 and collectionType now working in example tab

* Fix comments
2018-07-26 14:04:33 +02:00