Asmir Mustafic
bf01a8e019
add boolean enums support to forms
2018-09-24 17:35:57 +02: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
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
Guilhem N
8db415afce
Merge SWG annotations in manually created @Operation
( #1321 )
...
* Merge SWG annotations in manually created `@Operation`
* failing test
* Fix tests
2018-06-02 13:48:44 +02:00
Guilhem N
dbfa4ed8bd
Put RequestParam annotations in body ( #1328 )
...
* Put RequestParam annotations in body
* Fix tests
* Cs
2018-06-01 16:50:50 +02:00
Palluel-Lafleur Frédéric
c2f036c159
fix(SymfonyConstraintAnnotationReader): fixed enum guessing in Assert… ( #1325 )
...
* fix(SymfonyConstraintAnnotationReader): fixed enum guessing in Assert\Choicewhen callback parameter is used
* fix(SymfonyConstraints): turn double quotes in single quotes
2018-05-20 15:59:52 +02:00
Marek Štípek
22ec4fb83b
Fixing FormModelDescriber entity form type description regression
2018-05-13 20:36:53 +02:00
Marek Štípek
b4ba46f9c2
Support for extended builtin form types
2018-05-10 01:01:26 +02:00
Asmir Mustafic
af30c6ac0e
handle form collection with type introspection
2018-04-27 12:43:42 +02:00
Baptiste Lafontaine
c90f2a11c1
Load class NelmioApiDocBundle annotations
2018-04-16 13:46:06 +02:00
Zarko Stankovic
e83856ad9a
Refactored code to achieve the logic we want for pattern and format.
2018-03-23 19:46:54 +01:00
Zarko Stankovic
5a1dfa6ead
Added support for "format" field for Constraint objects.
2018-03-15 19:09:51 +01:00
Zarko Stankovic
499886deab
Fix #1239 : FosRestDescriber properly configures Parameter#pattern property.
...
Minor bugfix that configures `Parameter#pattern` property instead of `Parameter#format`.
Tests provided that prove this implementation works as expected.
2018-02-27 15:42:40 +01:00
Guilhem Niot
7d99a96cf4
Allow to change a property name
2018-02-19 21:42:56 +01:00
Guilhem N
37efa7228b
Add a documentation form extension ( #1234 )
...
* Adding format and example extensions. Getting child type better for collections
Fixing copyrights
Fixing style issues
Fixing style issues
Fixing style issues
* Adding DocumentationExtension
* Adding error for invalid properties
* Reverting switch
* Missing entity break
* Removing unecessary doc
* Removing unecessary method
* Style change
* Adding break for number, integer, and text types
* Extracts the documentation form extension
2018-02-19 10:56:51 +01:00
Guilhem N
296c63d21c
Support references to config definitions ( #1232 )
...
* Support references to config definitions
* Add type hint
* Add a test
2018-02-19 10:49:52 +01:00
Martijn van Kempen
c72085a507
Added test for the Symfony constraints ( #1213 )
...
* Added test for the Symfony constraints
* Added missing ,
* Removed whiteline
* Moved test from JMS to FunctionTest
* Style ci changes
* Removed unused code
* Removed use
2018-02-05 18:39:58 +01:00
fredrocheron
72010c1d98
FormModelDescriber: set type to array with correct example for multiple choices form. ( #1212 )
...
* FormModelDescriber: set type to array with correct example for multiple choices form.
* Remove arrays examples and add test for multiple ChoiceType form
* Use of "items" for multiple ChoiceType form.
Detect "choices" type to determine property or items type.
Remove unused variable declaration.
2018-02-03 12:52:43 +01:00
Dragos Protung
b4c3dcd6ae
Added support for @Security
annotations ( #1201 )
...
* Added support for `@Security` annotations
* Don't output empty tag and security if none defined
2018-01-25 21:11:34 +01:00
David Buchmann
75cf1201ed
Apply fixes from StyleCI
2017-12-22 17:42:18 +00:00
Christian Schiffler
6f9ed9bba9
Add integer support to FormModelDescriber
2017-12-19 00:22:26 +01:00
Guilhem Niot
f03e33f551
Fix CS
2017-12-18 21:07:44 +01:00
Myroslav
ac7b924129
Read more properties from swagger property annotation ( #1146 )
...
* read default property from swagger property annotation
* read enum from swagger property annotation
* a small fixes
2017-12-17 16:58:41 +01:00
Guilhem Niot
a4fe1f8078
Fix CS
2017-12-17 10:44:07 +01:00
Guilhem N
785a09fd49
Merge pull request #1145 from discordier/hotfix/override-values-correctly
...
[3.0] Pass real property to swagger annotation reader
2017-12-17 09:54:02 +01:00
Christian Schiffler
8da1ac0296
Pass real property to swagger annotation reader
...
The type invariation (changing from the real property to the sub items
definition) causes the swagger annotations to end up on the created
`Items` entry.
This changes the behaviour to update the real property entry with the
swagger annotation.
Additionally this ensures that "description", "title" and "example" are
only updated on `Schema` instances.
2017-12-15 17:39:18 +01:00
Marcin Szepczyński
bff1b3ba0a
Add support for boolean type for CheckboxType ( #1123 )
...
* Add support for boolean type for CheckboxType
* add functional tests to checkbox form type as boolean
2017-12-15 16:58:40 +01:00
Myroslav
01f691c456
support swagger property annotation to extend description properties of model ( #1125 )
...
* support swagger property annotation to descripe properties of model
* support swagger property annotation to descripe properties of model
* fix issues from PR review
* rename method
* remove redundant annotations and revert changes into composer.json
* fix issues from PR comments
* use symfony 3 for default tests
* revert chages
* use symfony 3 for default tests
* revert changes in travis config
2017-12-03 19:30:44 +01:00
kopaygorodsky
27402d7bb6
added support of collection type + example in forms
2017-11-11 13:33:41 +02:00
Jasper Ras
d6913dc78f
fix: map route requirements to parameter pattern instead of format ( #1081 )
2017-09-24 00:57:06 +02:00
Vladislav Kopaygorodsky
0baa677515
Reading form recursively down(nested form) ( #1087 )
...
* Added support for EntityType in FormModel Describer. Reading form recursively down. Modified formSupport test
* codestyle fixes
2017-09-20 07:18:58 +02:00
Guilhem Niot
1fb8371e80
Add DateTime support
2017-07-25 10:31:23 +02:00
Guilhem Niot
c7367d6644
Add a controller exposing the documentation in json
2017-06-26 11:32:23 +02:00
Guilhem Niot
8eb084908d
Add forms support
2017-06-24 19:54:48 +02:00
Guilhem Niot
d1761826ab
Merge pull request #1010 from nelmio/groups
...
Add groups support
2017-06-14 12:26:52 +00:00
Guilhem Niot
9c0db1ea51
Fix symfony 4 support
2017-06-14 14:22:46 +02:00
Guilhem Niot
de40660341
Add groups support
2017-06-13 13:34:26 +02:00
Guilhem Niot
2422156f27
Fix
2017-06-02 21:30:31 +02:00
Guilhem Niot
87a42ab52d
fix cs
2017-05-31 18:35:02 +02:00
Guilhem Niot
ef4f587d33
Support @SWG\Tag
2017-03-17 19:45:46 +01:00
Guilhem Niot
ebe2bdf4d6
Get ride of Swagger-Php parser
2017-03-16 19:52:18 +01:00
Guilhem N
0f2cb3fde2
Add a config option to configure the base of the documentation
2017-01-25 18:53:19 +01:00
Guilhem N
14ae741115
Add models support
2017-01-14 17:36:56 +01:00
Guilhem N
a098f3f4e9
Remove the @ApiDoc
annotation
2017-01-09 12:21:53 +01:00
Guilhem N
1a17a5f5da
Allow implicit operations with SwaggerPhp annotations
2017-01-08 12:12:43 +01:00
Guilhem N
c797269bef
Change the vendor to "Nelmio"
2016-12-29 12:09:26 +01:00
Guilhem N
32dbbade38
Fix _format path parameter removal
2016-12-01 17:19:33 +01:00