Guilhem Niot
edf6b70175
Apply StyleCI fixes
2020-08-06 10:26:59 +02:00
Guilhem Niot
8948d5418b
Add methods metadata support for models ( #1678 )
...
* Add methods metadata support for models
* fix cs
2020-07-12 14:54:39 +02:00
Guilhem Niot
f420532121
Support using annotations only at the class level of controllers ( #1668 )
...
* Support using annotations only at the class level of controllers
* Fix dependencies
* Bump dependency
2020-07-11 17:53:09 +02:00
pratyam
fe39acd6a8
Bugfix/remove pattern from property expression message error ( #1670 )
...
* remove pattern added from the Expression Violation message.
This string confuses the API client showing a violation message instead of having a Regex. Any informatory message for the client should be placed in "description"
* fix tests
* fix typo
2020-07-04 16:27:40 +02:00
Guilhem Niot
dfff2476d8
Add @SerializedName
support ( #1636 )
...
* Add `@SerializedName` support
* Also test `@SerializedName` on properties
* Fix tests with sf < 4.2
* Fix the tests
* Update the CHANGELOG
2020-05-30 18:08:25 +02:00
Guilhem Niot
1a9a5d7ce6
Merge pull request #1552 from cyberemissary/duplicate-param-cleanup
...
Added describer that removes duplicate parameters when using $ref.
2020-03-14 11:41:27 +01:00
Guilhem Niot
3710e95d26
Rework PR
2020-01-09 21:45:37 +01:00
smoench
6f7c1fa870
remove FOSRest on symfony 5 test runs as FOSRest does not support symfony 5 yet
2019-12-20 10:52:36 +01:00
smoench
0d6a1591c8
fix compatibility with symfony 5
2019-12-19 15:41:14 +01:00
neFAST
92790b1d28
FIX #1428 Make sure FormInterfaceConfig has a 'documentation' option … ( #1429 )
...
* FIX #1428 Make sure FormInterfaceConfig has a 'documentation' option before getting it
FIX #1428
* adding SubmitType to Tests
* Update UserType.php
* Update UserType.php
* Update FunctionalTest.php
* Update FunctionalTest.php
* removed check to see how unit test handles this
* Add test back
* Cs
2019-03-07 08:48:56 +01:00
Guilhem N
0bca7f377d
Merge pull request #1447 from AyrtonRicardo/master
...
Change validation to allow fields described as DateTimeInterface.
2019-01-02 23:20:13 +01:00
Romain BigZ Richard
9968027aad
feature: Add new validation from constraints.
...
- Add minimum and maximum from the range annotation
- Add maximum from the LessThan and LessThanOrEqual annotation
FIX: remove the extra date-time format, which was not standard and not in sync with what symfony exposes
Swagger specifies that date-time should follow the RFC3339, and this is what symfony does as default.
2018-12-19 16:25:14 +01:00
Ayrton Ricardo
2f53cc9c12
Add ',' in the end of array
2018-12-10 14:25:08 +01:00
Ayrton Ricardo
2ddf4362c0
Change validation to allow fields described as DateTimeInterface.
2018-12-10 14:21:09 +01:00
Michael Moll
d37a543502
fix codestyle errors
2018-11-11 20:31:50 +01:00
Guilhem N
cd40d556cb
Merge pull request #1404 from bifidokk/area-docs
...
Separated documentation for areas
2018-10-06 14:44:53 +02:00
Guilhem Niot
97b722f97d
Last fixes
2018-10-06 14:42:47 +02:00
Guilhem N
67ff6bd1e1
Merge pull request #1403 from goetas/boolean-enums
...
Add boolean enums support to forms
2018-10-04 20:36:41 +02:00
Guilhem N
6c257256b3
Merge pull request #1405 from piotrantosik/choicevalidator
...
Fix choice annotation with callback method name without class
2018-10-04 20:24:07 +02:00
Ilia Burtsev
346235de97
Add ability to use response objects which defined in configuration
2018-10-02 17:02:17 +07:00
Piotr Antosik
a9d6b3fd46
Fix choice annotation with callback method name without class
2018-09-26 16:51:43 +02:00
Asmir Mustafic
bf01a8e019
add boolean enums support to forms
2018-09-24 17:35:57 +02:00
Guilhem N
99833189fd
Ignore Type::$nullable ( #1391 )
2018-08-30 01:10:36 +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
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
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
Marek Štípek
22ec4fb83b
Fixing FormModelDescriber entity form type description regression
2018-05-13 20:36:53 +02:00
Marek Štípek
b4ba46f9c2
Support for extended builtin form types
2018-05-10 01:01:26 +02:00
Asmir Mustafic
af30c6ac0e
handle form collection with type introspection
2018-04-27 12:43:42 +02:00
Baptiste Lafontaine
c90f2a11c1
Load class NelmioApiDocBundle annotations
2018-04-16 13:46:06 +02:00
Zarko Stankovic
e83856ad9a
Refactored code to achieve the logic we want for pattern and format.
2018-03-23 19:46:54 +01: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
David Buchmann
75cf1201ed
Apply fixes from StyleCI
2017-12-22 17:42:18 +00: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