238 Commits

Author SHA1 Message Date
Guilhem N
3799dc1338
Allow EXSyst/swagger ~0.4 2018-02-03 17:54:48 +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
Guilhem N
0012b9438a
Change 3.1.0 release date 2018-01-28 13:56:02 +01:00
Martijn van Kempen
dad7f77351 Nullable patterns no longer throw exceptions (#1210)
Nullable patterns no longer throw exceptions
2018-01-26 17:09:38 +01:00
Guilhem N
819cbe354f
Merge pull request #1208 from nelmio/GuilhemN-patch-1
Add a missing variable initialisation
2018-01-26 12:49:41 +01:00
Guilhem N
79482bf7a2
Add a missing variable initialisation 2018-01-26 07:37:03 +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
Guilhem N
4e2a25c9bc
Update CHANGELOG.md 2018-01-25 15:03:03 +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
Guilhem N
f193fdb1f1
Inject the AnnotationsReader in Model describers instead of internal classes (#1203) 2018-01-24 19:58:38 +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
bf9de35b22
Merge pull request #1192 from Mairu/issue-1191
allow phpdocumentor/reflection-docblock version ^4.0
2018-01-20 16:59:00 +01:00
Mairu
5e96c6fce2 allow phpdocumentor/reflection-docblock version ^4.0 (#1191) 2018-01-18 23:37:33 +01:00
Guilhem N
497ad05e5f
Merge pull request #1188 from michellesanver/fix-deprecations-in-test-due-to-private-service
Made nelmio_api_doc.generator a public service
2018-01-15 17:29:05 +01:00
Michelle Sanver
7d01a420fa Made nelmio_api_doc.generator a public service
The service was not defined public or private, which threw deprecation notices in the tests where we use it from the container. It is now declared public explicitly to not have deprecations.
2018-01-15 17:05:34 +01:00
Guilhem N
f0baf35856
Update Swagger Ui (#1187) 2018-01-13 14:18:32 +01:00
Guilhem N
eda4a0a340
Always require phpdocumentor/reflection-docblock (#1186) 2018-01-13 14:18:13 +01:00
Guilhem N
b5b0eb1c16
Small fix 2018-01-13 14:12:30 +01:00
Guilhem Niot
b5fb133533 Merge fixes 2018-01-13 13:37:17 +01:00
Guilhem Niot
b73ce1fc06 Fixes 2018-01-13 13:29:45 +01:00
Guilhem N
4d95dde523
Make the docs clearer about models (#1185)
* Make the docs clearer about models

* Fixes
2018-01-13 13:21:23 +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
David Buchmann
667569be7d
Merge pull request #1182 from nelmio/GuilhemN-patch-2
Several doc fixes
2018-01-10 17:03:30 +01:00
Guilhem N
c89ca38496
Several doc fixes 2018-01-10 14:45:02 +01:00
David Buchmann
1750792121
Merge pull request #1178 from nelmio/GuilhemN-patch-2
Fix links
2018-01-09 15:01:51 +01:00
Guilhem N
605cc84a3f
Fix links 2018-01-09 13:22:28 +01:00
Guilhem N
43dbc10137
Fix links 2018-01-09 12:58:52 +01:00
Guilhem N
4bd1b3ebe6
Merge pull request #1177 from nelmio/method-annotation-doc-improve
Provide example for action summary and description
2018-01-09 12:51:51 +01:00
David Buchmann
c30fb4c984
Provide example for action summary and description 2018-01-09 10:31:38 +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 N
92f3eb633b
Merge pull request #1171 from nelmio/docs
Rework the docs
2018-01-04 20:08:06 +01:00
Guilhem N
447f44e5a1
Merge pull request #1172 from nelmio/api-platform
Fix Api-Platform support
2018-01-04 20:05:42 +01:00
Guilhem Niot
a09c105955 Fix Api-Platform support 2018-01-04 18:08:14 +01:00
Guilhem Niot
108687ec8e Fixes 2018-01-04 17:47:47 +01:00
Guilhem Niot
044935aff8 Rework the docs 2018-01-04 14:33:02 +01:00
Guilhem N
1b6a1c2965
Merge pull request #1170 from nelmio/cleanup
Cleanup
2018-01-04 11:37:31 +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
Guilhem N
2a42de64e2
Merge pull request #1166 from kubaceg/master
Fix undefined variable  in ApiPlatformDescriber
2018-01-01 16:37:43 +01:00
Jakub Cegielka
1f881517c7 Fix undefined variable in ApiPlatformDescriber 2017-12-31 20:05:14 +01:00
Guilhem N
3fa79bd2b2
Merge pull request #1161 from dbu/phpdocumentor-soft-dependency
do not fail if phpdocumentor is not available
2017-12-29 14:13:08 +01:00
Guilhem N
ca677ba575
Merge pull request #1162 from dbu/add-changelog
add changelog listing changes since 3.0
2017-12-29 14:10:32 +01:00
David Buchmann
49a0d181ea add changelog listing changes since 3.0 2017-12-28 10:55:05 +01:00
David Buchmann
f4a9ad7ef7 do not fail if phpdocumentor is not available 2017-12-28 10:46:05 +01:00
David Buchmann
ccf7a75ec5
Merge pull request #1159 from nelmio/analysis-zG01nA
Apply fixes from StyleCI
2017-12-22 18:44:38 +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
Guilhem N
8a57f39d01
Merge pull request #1152 from dbu/jms-php-docblocks
parse phpdoc annotations in jms models
2017-12-21 17:12:42 +01:00
David Buchmann
72c8c80d9c adjust to feedback 2017-12-19 23:14:57 +01:00
Guilhem N
b105c1f098
Merge pull request #1155 from discordier/hotfix/handle-integer-form
[3.0] Add integer support to FormModelDescriber
2017-12-19 20:56:19 +01:00