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
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
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
8a29e6824d
Add a test case
2018-03-22 19:03:25 +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
044935aff8
Rework the docs
2018-01-04 14:33: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
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
66872da552
add functional test for docblock model describer
2017-12-19 08:58:48 +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
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
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
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
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
Guilhem Niot
bb14c85179
Merge pull request #1035 from nelmio/basepath
...
Use request base url
2017-07-25 11:26:14 +02:00
Guilhem Niot
1fb8371e80
Add DateTime support
2017-07-25 10:31:23 +02:00
Guilhem Niot
b8479d02e1
Add JMS serializer support
2017-07-25 10:09:41 +02:00
Guilhem Niot
0b05a23625
Use request base url
2017-07-05 15:43:15 +02:00
Guilhem Niot
c7367d6644
Add a controller exposing the documentation in json
2017-06-26 11:32:23 +02:00