537 Commits

Author SHA1 Message Date
David Buchmann
66872da552 add functional test for docblock model describer 2017-12-19 08:58:48 +01:00
David Buchmann
373516387f do not set description if empty 2017-12-19 08:56:35 +01:00
David Buchmann
3fa948aee8 set up DI and add type support 2017-12-19 08:56:35 +01:00
David Buchmann
fe3629cdeb WIP parse phpdoc annotations in jms models 2017-12-19 08:56:35 +01: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
Guilhem N
4e443c43b1
Merge pull request #1148 from dbu/patch-1
make upgrade instructions depend on stable version
2017-12-18 15:55:57 +01:00
David Buchmann
3ad27f46c3
make upgrade instructions depend on stable version 2017-12-18 08:41:18 +01:00
Yi Ping
3b81fa4f2f changes 2017-12-18 08:06:19 +08: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 N
a6ff145195
Merge pull request #1147 from nelmio/TRAVIS
Update Travis config
2017-12-17 10:52:11 +01:00
Guilhem Niot
4a9d9acb85 Update Travis config 2017-12-17 10:46:20 +01:00
Guilhem Niot
a4fe1f8078 Fix CS 2017-12-17 10:44:07 +01:00
Guilhem N
a07e3bfe75
Merge pull request #1088 from piotrantosik/patch-1
Fix migration command
2017-12-17 10:02:21 +01:00
Guilhem N
95223d47ff
Merge pull request #1142 from hboomsma/patch-1
Remove beta warning from README.md
2017-12-17 09:54:57 +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
Hidde Boomsma
36e47f5bbf
Remove beta warning from README.md
I noticed you released v3.0.0 🎉. Thnx for the great work!
2017-12-12 07:53:27 +01:00
Kori
29ec20bda1 Fix exception when attempting to read swagger annotation for virtual property (#1136)
* Fix exception when attempting to read swagger annotation for virtual property

* drop jms 1.0, add stopwatch for dependency
2017-12-09 14:31:56 +01:00
Yi Ping
d4bf23bcfb Fix complex groups for jms serializer 2017-12-08 10:38:49 +08: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
Guilhem N
8a023a1897
Update travis config (#1117) 2017-11-27 14:40:22 +01:00
Guilhem Niot
2b15539cc3
Merge pull request #1126 from kopaygorodsky/feature/form-collection-type
Feature/form collection type
2017-11-11 12:53:22 +01:00
kopaygorodsky
8521fdc7ea added break 2017-11-11 13:43:42 +02:00
kopaygorodsky
27402d7bb6 added support of collection type + example in forms 2017-11-11 13:33:41 +02:00
kopaygorodsky
d0a6dffa11 Merge branch 'master' of github.com:nelmio/NelmioApiDocBundle 2017-11-11 13:23:05 +02:00
Guilhem Niot
337dd7b609 Merge pull request #1099 from nelmio/tests
Fix tests
2017-10-22 17:36:16 +02:00
Guilhem Niot
9f2436dce3 fix tests 2017-10-22 11:48:33 +02:00
Guilhem Niot
3e98b9fe97 Merge pull request #1104 from tamcy/master
PHP 7.2 compatibility fix
2017-10-12 07:15:04 +02:00
tamcy
da1c1e66f8 iterator_count() should be used against EXSyst\Component\Swagger\Collections\Responses instead of count(). 2017-10-12 12:01:51 +08:00
Tarmo Leppänen
87f40feefc Support for PHP 7.2 (#1094)
* Support for PHP 7.2

* Update composer.json
2017-09-27 20:29:54 +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
Piotr Antosik
bc91e9d686 Update UPGRADE-3.0.md 2017-09-18 14:32:19 +02:00
kopaygorodsky
b405b33ea2 codestyle fixes 2017-09-15 21:43:20 +03:00
kopaygorodsky
6e41a20e40 Added support for EntityType in FormModel Describer. Reading form recursively down. Modified formSupport test 2017-09-15 20:31:51 +03:00
Wesley Lancel
3adf8c3d97 Fix type for float / double for JMS models (#1077)
* Fix type for float / double for JMS models

* Set format for number type
2017-09-09 20:40:21 +02:00
Guilhem Niot
1bbfea649b Merge pull request #1076 from Nyholm/patch-1
Syntax update
2017-08-31 12:01:05 +02:00
Guilhem Niot
e78ee9bda5 Merge pull request #1074 from nelmio/twig
Remove SwaggerUI controller when TwigBundle is not registered
2017-08-28 21:33:51 +02:00
Guilhem Niot
63585bc5d3 Merge pull request #1073 from nelmio/ref
Fix the invalid reference notice
2017-08-28 21:32:17 +02:00
Tobias Nyholm
585baa2477 Syntax update
`~7.0|~7.1` is the same as `~7.0`. I think you mean to do `7.0.*|7.1.*` since PHP does not do Semver.
2017-08-28 20:42:50 +02:00
Guilhem Niot
44422d86a0 Remove SwaggerUI controller when TwigBundle is not registered 2017-08-27 17:58:59 +02:00
Guilhem Niot
2fcce922d7 Fix the invalid reference notice 2017-08-27 17:41:42 +02:00
Guilhem Niot
2b95b1bd0f Merge pull request #1049 from HaraldVelner/master
Add missing svg definitions for icons
2017-08-23 23:21:46 +02:00
Guilhem Niot
9d6064aebb Merge pull request #1067 from Prezent/fix-constraint-param
Fix fatal error when using a Constraint as requirement
2017-08-23 23:14:10 +02:00
Guilhem Niot
026ee2ada1 Merge pull request #1061 from discordier/feature/root-key-configuration-merge
[3.0] Allow configuration to be split on root key level.
2017-08-23 23:09:43 +02:00
Sander Marechal
b61820eb4b Fix fatal error when using a Constraint as requirement 2017-08-10 12:16:50 +02:00
Christian Schiffler
5c12ff19de Allow configuration to be split on root key level.
We now allow to split the configuration on multiple files, each
containing one of the various root keys of the "documentation" entry.

This means, you may now split "documentation/*" out to own yml files and
import them.

NOTE: this only allows splitting of entries being a direct child of the
documentation entry, so splitting i.e. the info key over multiple files
will not work.
2017-08-08 19:43:01 +02:00
Harald Velner
287cecda39 Add svg icons definitions to index.html.twig 2017-08-07 13:49:38 +02:00