228 Commits

Author SHA1 Message Date
Ilyas Salikhov
5cbcba78df Symfony 6 compability 2024-06-18 12:54:58 +03:00
Ilyas Salikhov
b603381139 1. Up min PHP version to 8.1
2. Up min Symfony verion to 5.0. Adopt code to sf 5.0+
3. Local env to run tests
4. Repare tests
2024-06-18 12:24:32 +03:00
Alan Poulain
b9718f3400 Compatibility with Symfony 4.3 (#1524)
* Use twig instead of templating

* Fix at least one suite test in Travis

* Use Twig namespace (Twig > 1.10 and TwigBundle > 2.2)
2022-04-26 16:58:48 +03:00
Vitaliy Chesnokov
8a6213cbd2
Removed duplicated constraints in Format field. Improved format for field type of form 2019-04-29 12:39:48 +03:00
Vitaliy Chesnokov
39d640cce8
Validation with considering groups 2019-04-29 12:39:48 +03:00
Vitaliy Chesnokov
d78f8887a9
Pass the data about field name and field class to template 2019-04-29 12:39:45 +03:00
Vitaliy Chesnokov
befd12e3e5
Form labels translation support. 2019-04-25 21:55:45 +03:00
Vitaliy Chesnokov
b7464a93b9
* Range Constraint parsing in the ValidationParser
* Better formatting form Length constraint description
* Allow to define the input name for the ValidationParser
2019-04-25 21:55:41 +03:00
Vitaliy Chesnokov
1c4f003e76
Doc generation for the specific API version 2019-04-25 21:50:28 +03:00
William Durand
79716d49f5
Remove a test since #811 changes the behavior 2016-06-13 11:04:16 +02:00
Denys Pasishnyi
1256275185 #502 Test for the improvement 2016-06-13 00:30:40 +02:00
miholeus
5123b49bf7 added tests for headers support 2016-05-19 18:20:41 +03:00
William Durand
2a0f95eac0 Merge pull request #792 from rodrigm/master
Fix #565
2016-02-24 19:00:28 +01:00
Rodrigo Gómez
89f459dc07 Fix #565
Change PUT by PATCH

Refactor tests for #565
2016-02-24 17:57:22 +01:00
William Durand
65a5159ce9 Merge pull request #796 from zhukovra/master-array-requirements
Fix Array to string conversion error on array requirements
2016-02-24 17:47:14 +01:00
Kévin Dunglas
abb100b29b Handle circular references in DunglasApiParser. Close #678. 2016-02-04 08:34:34 +01:00
Zhukov Roman
f2fc6b47c0 Fix Array to string conversion error on array requirements
Fixes #564
2016-02-01 14:33:17 +03:00
Damien Alexandre
306f2c47cf Fix Array to string conversion error on array requirements
Fix https://github.com/nelmio/NelmioApiDocBundle/issues/773
See https://github.com/FriendsOfSymfony/FOSRestBundle/pull/1015
2016-01-08 13:04:25 +01:00
Olivier Dolbeau
d3bc49c3d1 Avoid "array to string conversion" error 2015-12-10 09:23:57 +01:00
Ener-Getick
24fa5dfbc0 Fix a deprecation 2015-12-08 13:06:38 +01:00
William Durand
d5395cc0ea
Fix CS 2015-12-04 09:15:21 +01:00
Ener-Getick
67b7b46627 Add symfony 3.0 support 2015-12-02 16:19:12 +01:00
Piotr Antosik
dd8bdd2070 Fix route host with placeholder 2015-11-23 00:18:50 +01:00
William Durand
4fad200d7b Merge pull request #758 from dunglas/master
Fix tests related to DunglasApiBundle
2015-11-22 08:22:33 +01:00
Kévin Dunglas
224af02f7f Fix tests related to DunglasApiBundle 2015-11-21 18:36:13 +01:00
William Durand
eafa2ade0b Merge pull request #749 from fstr/ISSUE-747-JSP
Introduced default-value parameter to JsonSerializableParser
2015-11-10 14:39:07 +01:00
Florian Strübe
aa10f9a2da Introduced default-value parameter to JsonSerializableParser
JSP is now able to set a default value for scalar types
This makes merging the parser result with other parser results easier
and gives some additional info when creating docs

Removed PHP doc comment block
2015-11-10 14:34:53 +01:00
William Durand
a24d81f766 Merge pull request #748 from fstr/ISSUE-747
Empty string is now a valid default parameter value
2015-11-10 09:18:44 +01:00
Piotr Antosik
3dea122b98 fix comment in tests 2015-11-10 01:28:40 +01:00
Florian Strübe
e8a2f690ab Empty string is now a valid default parameter value that is successfully
merged with other parameters
Preventing access of uninitialized array key 'default'
Added functional test case for mergeParameters that covers this issue
2015-11-09 22:22:00 +01:00
William Durand
be90e8aad6 Merge pull request #740 from fstr/master
[ISSUE-739] ApiDoc parameters setting will override lower parameter definitions in the hierarchy
2015-10-28 10:30:40 +01:00
Florian Strübe
e2d2e41f7b [ISSUE-739] ApiDoc parameters setting will override lower parameter
definitions in the hierarchy
2015-10-28 10:13:24 +01:00
William Durand
9df40af264
Support Symfony 2.8+
Fix #738
2015-10-27 17:15:32 +01:00
William Durand
57b9aa659e
skip tests related to DunglasApiBundle 2015-10-23 10:53:47 +02:00
William Durand
beaa25b21c
Fix tests (introduce result files to make things a bit more readable) 2015-10-23 10:36:53 +02:00
William Durand
0dc1bc4469
Revert "Fix test related to DungleApiBundle. Remove some of them."
This reverts commit e66fb209b56e7937647fae39e64b6218efa62e1e.
2015-10-23 10:11:52 +02:00
William Durand
4b72190f4d
Speedup tests 2015-10-23 10:07:45 +02:00
William Durand
e66fb209b5
Fix test related to DungleApiBundle. Remove some of them. 2015-10-23 09:29:55 +02:00
William Durand
716f3f19de
fix test suite by disabling a broken feature 2015-10-22 22:46:25 +02:00
William Durand
ce71bf0629
Fix CS 2015-10-22 14:42:59 +02:00
Sullivan SENECHAL
32de80f97f
Fix deprecated route options 2015-10-22 14:42:16 +02:00
Mikhail Shamin
02007e957d Fix extractor view data caching 2015-07-21 17:38:44 +07:00
Fred Cox
406a4e1b5b Add support for using name in the input and output options for JsonSerializable and validation parsers 2015-07-01 14:05:10 +03:00
Fred Cox
37c6465700 Add a parser for jsonSerializable classes 2015-07-01 14:04:38 +03:00
mRoca
65345912a9 Add DunglasApiBundle doc sections 2015-06-18 12:23:07 +02:00
William Durand
c7909c576e Merge pull request #641 from Soullivaneuh/configure-options
Fix deprecated FormType::setDefaultOptions usage
2015-06-11 13:51:25 +02:00
Baptiste Lafontaine
213dbdfd1c Handle "array" parameter in FOSRestBundle QueryParam or RequestParam 2015-06-08 08:43:38 +02:00
Sullivan SENECHAL
f5b45607c6 Fix deprecated FormType::setDefaultOptions usage 2015-06-05 09:34:11 +02:00
Mikhail Shamin
1a92a112bc Added view option to api:doc:dump command 2015-05-26 18:09:29 +07:00
William Durand
1e33a8821c
Refactor tests 2015-05-16 12:48:11 +02:00