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
bifidokk
5a6145fac8
Add docs for areas
2018-07-26 10:16:10 +05:00
Asmir Mustafic
29f3042754
jms serializer groups can be nested ( #1366 )
2018-07-25 17:58:28 +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
David Buchmann
9ca68b426c
Merge pull request #1362 from nelmio/template-faq
...
complete example for template in faq
2018-07-17 09:47:26 +03:00
David Buchmann
ca118c0fcc
complete example for template in faq
2018-07-16 14:15:27 +02:00
Markus Poerschke
c771c684a8
Customizable template and remove Google Fonts ( #1357 )
...
* Allow to override certain parts of the template
* Twig template can be defined via config
* Blocks can be used to override/extend only parts of the template
* Fix spelling in documentation
* Fix extension configuration tree
* Fix unit tests by making constructor argument optional
* Add fonts block and split swagger initialization into own block
* Fix code style
* Remove Google fonts, remove configuration and add changelog entry
* Remove template argument from service definition
* Add correct path for overriding template
* Move re-add of Google Fonts to FAQ section in documentation.
* Remove unused class import
2018-07-16 09:45:18 +02:00
Asmir Mustafic
ab005c4129
Implement alternative naming system via configuration ( #1312 )
...
* implement alternative naming system via configuration
* use strict comparison
* test di configs
* rever
* test naming aliases are applied
* set "default" as default area
* test names are passed to generators
* cs formatting
* added extra check for built-int types
* cs
* added documentation about alternative names
* allow to create the same alias in two different areas
* document and test better aliasing strategy
* specify that the last matching rule is used
* Make last matching rule wins
* Fix documentation
2018-06-10 09:56:38 +02:00
Jerzy Lekowski
cf0857af64
Remove unused variable ( #1340 )
2018-06-07 20:27:21 +02:00
David Buchmann
662db568f8
Merge pull request #1336 from nelmio/GuilhemN-patch-1
...
Fixes tests
2018-06-04 07:59:11 +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
David Buchmann
8678a21fdd
Merge pull request #1331 from markuspoerschke/run-test-with-php72
...
Run CI pipeline with PHP 7.2
2018-05-28 15:15:02 +02:00
Markus Poerschke
072f189059
Update PHPUnit to 6.5 and allow newer version of PHPUnit Bridge
2018-05-28 13:58:42 +02:00
Markus Poerschke
bb1faba506
Run CI pipeline with PHP 7.2
2018-05-28 12:51:45 +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
Guilhem N
4f42b5611f
Merge pull request #1320 from maryo/extended_builtin_form_types
...
Support for extended builtin form types
2018-05-10 18:02:32 +02:00
Guilhem N
9adca90e45
Merge pull request #1316 from dbu/faq
...
add more entries to the faq
2018-05-10 17:26:29 +02:00
Marek Štípek
b4ba46f9c2
Support for extended builtin form types
2018-05-10 01:01:26 +02:00
Guilhem N
bf52f136ce
Merge pull request #1319 from OndraM/fix-docs-model
...
Fix Model annotation example in docs
2018-05-09 19:46:01 +02:00
Ondřej Machulda
83de823e77
Fix Model annotation example in docs ( fixes #1318 )
2018-05-09 17:12:17 +02:00
David Buchmann
d0e16d6001
adjust to feedback
2018-05-08 08:08:20 +02:00
David Buchmann
16fa7cf618
add more entries to the faq
2018-05-07 10:05:03 +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
Guilhem N
2c72aa4eff
Merge pull request #1309 from goetas/form-collections
...
Handle form collection types
2018-04-27 19:36:50 +02: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
de8704f643
Better log message for unsupported http method
2018-04-20 17:24:28 +02:00
Floran Brutel
22c6eb5958
Add log when there are no valid http methods
2018-04-20 10:43:00 +02:00
Guilhem N
473a8ccd01
Merge pull request #1297 from magnetik/class
...
Load class NelmioApiDocBundle annotations
2018-04-19 17:56:25 +02:00
Floran Brutel
eb7e6b6803
Ignore path without valid methods
2018-04-19 09:51:52 +02:00
Guilhem N
604ab3d2b1
Merge pull request #1296 from magnetik/title
...
Add the swagger spec info name in <title>
2018-04-16 13:52:32 +02:00
Baptiste Lafontaine
c90f2a11c1
Load class NelmioApiDocBundle annotations
2018-04-16 13:46:06 +02:00
Baptiste Lafontaine
a91c89cfe7
Add the swagger spec info name in <title>
2018-04-16 09:59:57 +02:00
Floran Brutel
7aa4c829b7
Ignore LINK and UNLINK methods
2018-04-12 16:09:22 +02:00
David Buchmann
a0960d8f78
Merge pull request #1288 from rebangm/patch-1
...
Fix typo
2018-04-10 11:38:56 +02:00
Jean-Philippe Dépigny
6a039bfe62
Fix typo
...
Add backslash in `use Nelmio\ApiDocBundle\Annotation\Model;`
2018-04-10 11:17:11 +02:00
Guilhem N
f464fef932
Merge pull request #1285 from jlekowski/master
...
Fix #1283 : Invalid swagger.json generation - definition for entities …
2018-04-09 12:04:42 +02:00
Jerzy Lekowski
3b2d9da6c2
Fix #1283 : Invalid swagger.json generation - definition for entities with Assert\NotBlank and Assert\Length
2018-04-09 10:53:43 +01:00
Guilhem N
ff590b013c
Merge pull request #1282 from WhiteEagle88/fix_1276
...
Fixed #1276 : Symfony Serializer Groups cause Exception while parsing
2018-04-05 16:00:15 +02:00
Dmytro Boiko
badcc8abdd
Fixed #1276 : Symfony Serializer Groups cause Exception while parsing
2018-04-05 15:54:51 +03:00