85 Commits

Author SHA1 Message Date
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
Alessandro Tagliapietra
2acf49e9ee Added TODO comment to the workaround 2012-11-19 11:15:28 +01:00
Alessandro Tagliapietra
b3d628a31b Exception handling on unsupported fields types
Since the entity (and maybe others) form field type breaks the doc generations, I've added a try{} catch{} exception handler when you try to a compatible field type in the formParser().

It's a workaround for issue https://github.com/nelmio/NelmioApiDocBundle/issues/94.

Later we can add a better support for other types of fields.
2012-11-19 11:09:26 +01:00
Jordi Boggiano
9c7577f7c2 Merge remote-tracking branch 'docteurklein/virtual_property_support' 2012-10-24 15:38:42 +02:00
Klein Florian
197cdfc989 fix cs 2012-10-24 15:36:41 +02:00
Klein Florian
d129db9a53 add virtual property support for jms parser 2012-10-24 15:09:36 +02:00
Klein Florian
db4a375992 avoid infinite recursion when parsing jms metadata 2012-10-24 10:29:08 +02:00
Klein Florian
df29283a7f fix cs 2012-10-05 09:36:43 +02:00
Klein Florian
011c59b4d7 do not support form types with required options 2012-10-04 10:37:12 +02:00
Klein Florian
734dd0da7e fix bad variable name 2012-10-03 17:06:56 +02:00
Klein Florian
f9d4fb90cd allow to pass classes wich have constructor arguments 2012-10-03 16:39:07 +02:00
Klein Florian
5c52352eb5 allow to pass classes wich have constructor arguments 2012-10-03 16:35:56 +02:00