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
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
Javier Spagnoletti
1063972c27
[JMSModelDescriber] Update JMSModelDescriber
in order to iterate over nested array definitions ( #1365 )
2018-07-23 18:35:05 +02:00
Guilhem N
abc3e71114
Fixes tests
2018-06-03 19:19:29 +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
Guilhem N
4954feb232
Merge pull request #1323 from maryo/entity_type_description_regression
...
FormModelDescriber entity form type regression
2018-05-15 13:33:36 +02:00
Marek Štípek
22ec4fb83b
Fixing FormModelDescriber entity form type description regression
2018-05-13 20:36:53 +02:00
David Buchmann
d79dc5922d
Merge pull request #1322 from nelmio/params
...
Support references to config parameters
2018-05-11 10:43:37 +02:00
Guilhem Niot
c1fb7abfb8
Support references to config parameters
2018-05-10 19:10:13 +02:00
Marek Štípek
b4ba46f9c2
Support for extended builtin form types
2018-05-10 01:01:26 +02:00
Guilhem N
304b3f5816
Merge pull request #1313 from phansys/modeldescriber
...
Normalize description for classes implementing `\DateTimeInterface`
2018-05-05 23:20:03 +02:00
Asmir Mustafic
4253ff6b67
Merge pull request #1277 from goetas/bazinga-hateoas
...
Add basic BazingaHateoasBundle support
2018-05-05 14:49:17 +02:00
Javier Spagnoletti
dbd2076921
Normalize description for classes implementing \DateTimeInterface
2018-05-04 15:22:18 -03:00
Asmir Mustafic
af30c6ac0e
handle form collection with type introspection
2018-04-27 12:43:42 +02:00
Asmir Mustafic
c5b1d538f8
Improve support for JMS dictionaries (associative arrays) ( #1301 )
...
* improve support for JMS dictionaries (associative arrays)
Doc: https://swagger.io/docs/specification/data-models/dictionaries/
* use schema merge instead of reflection
2018-04-21 16:57:37 +02:00
Guilhem N
1680ba3481
Merge pull request #1294 from Hexanet/fix-link-unlink-methods
...
Ignore unsupported HTTP methods
2018-04-20 18:57:39 +02:00
Floran Brutel
22c6eb5958
Add log when there are no valid http methods
2018-04-20 10:43:00 +02:00
Baptiste Lafontaine
c90f2a11c1
Load class NelmioApiDocBundle annotations
2018-04-16 13:46:06 +02:00
Guilhem N
c8a5fb0ecc
Merge pull request #1263 from nelmio/in-object-model
...
Support ``@Model`` in in-object annotations
2018-03-24 10:03:36 +01:00
Guilhem N
6263ed8479
Merge pull request #1243 from ManInTheBox/proper-fos-rest-describer-pattern-setting
...
Fix #1239 : FosRestDescriber properly configures Parameter#pattern property
2018-03-24 09:37:54 +01:00
Zarko Stankovic
e83856ad9a
Refactored code to achieve the logic we want for pattern and format.
2018-03-23 19:46:54 +01:00
Guilhem Niot
8026ff46eb
Support `@Model
` in in-object annotations
2018-03-22 19:14:01 +01:00
Guilhem Niot
9bf00b5196
Support @Model through ref
2018-03-22 18:37:29 +01:00
Javier Spagnoletti
ec851ca65c
Allow to filter routes by host ( #1121 )
2018-03-17 10:37:54 -03: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
Martijn van Kempen
b07043ce33
Added Symfony constraint annotation reader ( #1202 )
...
* Added Symfony constraint annotation reader
* StyleCI analysis changes
* StyleCI analysis
* StyleCI analysis
* No longer adding the constraint description for NotBlank and NotNull
* Updated doc comment
* Removed @param
* Removed the AbstractComparison condition
* Using Assert and removed unused method
2018-01-25 14:59:48 +01:00
Robert Gruber
fe9d12772b
Add some missing property attributes for JMS model describer ( #1196 )
...
* Add some missing property attributes for JMS model describer
* Introduce own Swagger definition annotation reader
* Shorten annotation mapping by using merge
2018-01-24 15:20:20 +01:00
Guilhem N
73a5f104d6
Use @SWG\Parameter type when set instead of throwing ( #1174 )
...
* Add an exception
* Just use the manually defined type when set
* Update the jms model describer
2018-01-11 12:26:59 +01:00
Guilhem N
393a6c061e
Add areas support ( #1169 )
...
* Add areas support
* Document the Areas feature
* Allow to expose swagger area as JSON
* Fixes
* last fixes
2018-01-05 13:08:02 +01:00
Guilhem Niot
eb77f3708c
Cleanup
2018-01-04 11:34:23 +01:00
Guilhem N
8a53891ee9
Merge pull request #1132 from 7thcubic/complex_groups
...
Fix complex groups context for jms models
2018-01-03 12:01:06 +01:00
David Buchmann
75cf1201ed
Apply fixes from StyleCI
2017-12-22 17:42:18 +00:00
Guilhem N
48107de67d
Merge branch 'master' into complex_groups
2017-12-21 17:17:36 +01:00