Guilhem Niot
6faec06321
Fix the tests ( #1720 )
...
* Fix the tests
* Add a comment
* fix the tests
* cs
2020-09-20 20:38:26 +02:00
Alex Kalineskou
0da1909cb9
Add support for allowNull for Assert\NotBlank
2020-09-09 08:45:53 +02:00
Guilhem Niot
c1903db109
Fix the JMSModelDescriber
2020-09-09 08:38:25 +02:00
Paul Dugas
429d809f41
Ignore ReflectionException for "magic" JMS\Accessor methods ( #1715 )
...
* Update JMSModelDescriber.php
Ignore ReflectionException thrown when getter or setter from JMS\ Accessor are "magic" methods.
* Add tests to avoid future regressions
* CS
Co-authored-by: Guilhem Niot <guilhem.niot@gmail.com>
2020-09-09 08:38:08 +02:00
Guilhem Niot
edf6b70175
Apply StyleCI fixes
2020-08-06 10:26:59 +02:00
Guilhem Niot
523d28e955
Add annotations support at methods level when using the JMS serializer ( #1682 )
2020-07-18 13:31:41 +02:00
Guilhem Niot
8948d5418b
Add methods metadata support for models ( #1678 )
...
* Add methods metadata support for models
* fix cs
2020-07-12 14:54:39 +02:00
pratyam
fe39acd6a8
Bugfix/remove pattern from property expression message error ( #1670 )
...
* remove pattern added from the Expression Violation message.
This string confuses the API client showing a violation message instead of having a Regex. Any informatory message for the client should be placed in "description"
* fix tests
* fix typo
2020-07-04 16:27:40 +02:00
Guilhem Niot
8e0713be53
Always use the SerializerExtractor (from the PropertyInfo component) ( #1665 )
...
* Always use the SerializerExtractor (from the PropertyInfo component)
* typo
2020-06-22 16:37:32 +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
katinsv
82aa08e5ff
Fix Assert\Choice when choices are object not array
2020-03-13 16:59:56 +03:00
Clément Lovergne
9ba4735b78
Fix invalid tag which doesn't has description
2020-03-05 13:39:58 +01:00
Guilhem Niot
d58b4a4d66
Apply fixes from StyleCI
2020-02-23 16:50:24 +00:00
Filip Benčo
bb19ed7568
Revert ModelDescriberAwareInterface
2020-02-18 21:08:48 +01:00
Filip Benčo
90bae6738a
Update after PR
2020-02-18 20:45:58 +01:00
Filip Benčo
5d8765db04
Fix codestyle
2019-12-13 22:45:32 +01:00
Filip Benčo
2de03859c0
Fix some bugs and confings
2019-12-13 22:20:13 +01:00
Filip Benčo
f9eacee3fd
Add exntensible Property Describers
2019-12-13 21:40:42 +01:00
Nadrshin
99f5d37601
Support JMS "bool" type (alias for "boolean") ( #1547 )
2019-11-14 21:06:26 +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
258dd2f69f
Improve exceptions message ( #1502 )
2019-04-12 09:35:49 +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
3b0b5162ea
Merge pull request #1471 from nelmio/GuilhemN-patch-1
...
Update error message
2019-02-13 21:36:43 +01:00
Guilhem N
73f07aac50
Tipo
2019-02-13 21:18:18 +01:00
Guilhem N
0414277d0a
Minor fix
2019-02-13 21:13:17 +01:00
Guilhem N
2d81f9fd49
Update error message
2019-02-13 19:46:28 +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
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
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
2ddf4362c0
Change validation to allow fields described as DateTimeInterface.
2018-12-10 14:21:09 +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
Asmir Mustafic
7f78ef9ba6
Restore jms nested groups feature ( #1402 )
...
* fix missing variable definition
* fix caching typo
* do not pre allocate reserved names
* use model hash instead of spl hash
* register later the model
2018-10-10 17:24:13 +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
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
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