William Durand
36c223ab3a
Merge pull request #329 from maxromanovsky/form-type-parser-improvements
...
Form Parser improvements for date, datetime & choice form types (format & types)
2014-05-12 11:56:00 -04:00
Cedric LOMBARDOT
4181079d8b
Fix parse of input forms with options required
...
When form like model type was parsed this pass the required 'class' option to enable the build of the class
2014-04-11 09:45:35 +00:00
Max Romanovsky
b4fa6013cd
Form Parser improvements for date, datetime & choice form types (format & types)
2014-04-04 13:52:12 +03:00
Samuel ROZE
3f66888f00
Add PostParserInterface to JmsMetadataParser to get ValidatorParser found children parsed.
2014-03-20 16:39:36 +01:00
Paweł Mikołajczuk
32e37dbd8a
Don't try to call class with custom handlers.
...
With JMS Serializer you can set up own type and use it later with custom handler for this property - Parser allways try to call that custom property type like a class. This fix that.
2014-02-03 16:57:46 +01:00
Julius Beckmann
0845377300
Use only JMS/GroupExclusion if groups are there
...
When no groups are given in the ApiDoc, there should be no GroupExclusion and the Entity should be parsed wihtout exclusions.
Otherwise only the "Default" group of the Entity would be parsed, which may not be used.
The ApiDoc should not enforce the Entity to be grouped with "Default", to generate a "full-view" of it.
2013-12-20 15:08:26 +01:00
William DURAND
c3097c7439
cs
2013-12-11 01:59:59 +01:00
Samuel ROZE
1112cca784
Add support of All
constraint
2013-11-18 10:24:56 +01:00
William DURAND
e59ae1e1ef
Fix tests for Symfony2 2.1
2013-11-14 14:20:51 +01:00
William DURAND
7fdcd65286
Add not blank format validation
...
All credits go to @spolischook
See: https://github.com/nelmio/NelmioApiDocBundle/pull/234
Closes #234
2013-11-14 11:12:58 +01:00
Martin Westergaard Lassen
83315fcc80
Set format according to Date, DateTime and Time annotations
2013-11-14 11:05:05 +01:00
William DURAND
be130a2d10
Fix incompatibility with Symfony2 2.1
...
All credits go to @restyler
See: https://github.com/nelmio/NelmioApiDocBundle/pull/237
Closes : #231
Replaces: #237
2013-11-14 11:00:44 +01:00
William Durand
357d1ff967
Merge pull request #262 from skler/issue-259-2
...
[FIX] Issue 259
2013-11-14 01:47:29 -08:00
William Durand
29965ec7bb
Merge pull request #264 from driebit/embedded-forms
...
Add support for embedded forms
2013-11-14 01:42:43 -08:00
William DURAND
d7fd929379
Fix CS
2013-11-14 10:33:57 +01:00
Samuel ROZE
f02a6729eb
Support "callback" on Choice Validator
2013-11-06 15:25:10 +01:00
David de Boer
fbe9488963
Add support for embedded forms
2013-10-23 15:45:30 +02:00
Mauro Foti
018860205c
[FIX] Issue 259
2013-10-11 18:29:10 +02:00
Adrien Brault
083ae3aef1
Can now specifiy form name
...
If you create you forms using FormFactoryInterface::createNamed, then you should now be able to tell the ApiDocBundle the correct form prefix.
2013-10-08 12:09:46 -07:00
Vincent CHALAMON
4fb050175a
fix #226
2013-08-16 17:02:18 +02:00
William Durand
96b40b8a8c
Merge pull request #210 from jhallbachner/validation2
...
Added Support for Validation Component (refactored)
2013-08-13 03:28:09 -07:00
Josh Hall-Bachner
54a6ad566d
Updated postParse logic to utilize an interface and to avoid unnecessary "supports" checks.
...
Expanded documentation on new classes and methods.
2013-07-02 21:57:09 -07:00
Josh Hall-Bachner
23f64b84f6
Fixed multi-level validation nesting.
...
Removed "class" parameters from results after processed.
Updated README.
2013-06-30 23:46:43 -07:00
Josh Hall-Bachner
5e1549a29d
Built parse-merging into the ApiDocExtractor.
...
Wired up a "post-parse" pass to allow recursive parsing across multiple parsers.
2013-06-30 23:46:41 -07:00
Josh Hall-Bachner
0913157399
Added the initial structure for a Symfony Validation handler that is injected into the parsers.
2013-06-30 23:46:41 -07:00
Valentin Ferriere
475c92f17f
Update FormTypeParser.php
...
This catch is missing, because it can break here https://github.com/symfony/Form/blob/master/FormRegistry.php#L89
2013-06-19 10:17:37 +02:00
William Durand
0eb7ec27ec
Merge pull request #152 from adriensamson/issue-147
...
Fix Illegal offset warning in FormTypeParser (closes #147 )
2013-06-18 06:44:06 -07:00
Pierre-Yves LEBECQ
13efea8975
Added support for the jms version annotations in formatters
2013-05-12 14:54:01 +02:00
fieg
06271f824a
added support for JMS Serializer GroupsExclusionStrategy
2013-05-12 14:29:36 +02:00
Tobias Schultze
d2cd56dafc
fix jms metadata parser for hashmaps: array<K, V>
2013-05-10 19:09:57 +02:00
marapper
a97c65da70
Make parameters description conform to others
2013-05-07 23:11:32 +04:00
Benjamin Laugueux
6859384983
Handle the prefix form when parseForm.
...
Cf. #166 and thanks to @madesst.
2013-04-30 16:19:00 +02:00
Jordan Stout
d099ffa40f
use serializer naming strategy for parameter names
2013-03-25 14:40:00 -07:00
Pierre-Yves LEBECQ
7c6c1d5ce0
[Parser] Added float in JmsMetadataParser::isPrimitive().
2013-03-20 11:16:20 +01:00
Adrien SAMSON
eef1b7db0a
Add tests for FormTypeParser
2013-03-19 15:43:30 +01:00
Adrien SAMSON
dee44ee2e1
Fix #147
2013-03-19 15:42:32 +01:00
William DURAND
c8a0115040
Merge pull request #122 from fvilpoix/80_default_string_field
...
#80 - unrecognized parameters type from form are defaultly set to 'string'
2013-03-17 16:45:23 +01:00
William DURAND
04a6292eca
Merge pull request #129 from adriensamson/collection-form
...
Add support for collection type in FormType Parser
2013-03-16 18:54:48 +01:00
William DURAND
3fe7e15f58
Merge pull request #121 from relaxnow/feature/issue-109-pr2
...
Issue-109: Fixed infinite recursion on JMS Types that reference themselves or their parents
2013-03-16 18:50:45 +01:00
Stefano Sala
f5c938dc02
[JmsMetadataParser] added support for ArrayCollection
2013-02-26 19:24:14 +01:00
Jordi Boggiano
f162311a16
CS fix
2013-02-15 13:32:51 +01:00
Stefano Sala
5213b7db71
Fixed version of rest-bundle
...
Removed check of type string
2013-02-15 10:48:29 +01:00
Stefano Sala
5acf1adced
Just fixed some docblock
2013-02-15 09:24:09 +01:00
Stefano Sala
07bb37ac76
Finish upgrade to jms serializer 1.0
...
Updated deprecated MinLength assertion to Length
Updated array of object parsing
Handled deprecated calls because of using
AbstractType (not sure if it is the best way, though)
2013-02-11 14:42:17 +01:00
Adrien SAMSON
89276b09b7
Add support for collection type in FormType Parser
2013-01-18 15:21:51 +01:00
fvilpoix
c1ee7c6705
#80 - unrecognized parameters type from form are defaultly set to 'string'
2012-12-26 11:21:30 +01:00
Boy Baukema
fe76b6df67
Fixed infinite recursion on JMS Types that reference themselves or their parents.
2012-12-20 10:12:50 +01:00
Lukas Kahwe Smith
befeeb3e3f
JMSSerializerBundle 1.0 compatibility
2012-12-04 10:27:33 +01:00
Doug Hurst
b42db62be2
#102 - Doh, PHP is not Python
2012-11-26 12:37:44 -06:00
Doug Hurst
035ebfc965
#102 - Fix for JMS @Type change
2012-11-26 12:27:27 -06:00