File tree Expand file tree Collapse file tree 6 files changed +24
-9
lines changed Expand file tree Collapse file tree 6 files changed +24
-9
lines changed Original file line number Diff line number Diff line change @@ -53,16 +53,16 @@ rules:
53
53
54
54
# master
55
55
versionadded_directive_major_version :
56
- major_version : 7
56
+ major_version : 4
57
57
58
58
versionadded_directive_min_version :
59
- min_version : ' 7 .0'
59
+ min_version : ' 4 .0'
60
60
61
61
deprecated_directive_major_version :
62
- major_version : 6
62
+ major_version : 4
63
63
64
64
deprecated_directive_min_version :
65
- min_version : ' 6 .0'
65
+ min_version : ' 4 .0'
66
66
67
67
# do not report as violation
68
68
whitelist :
Original file line number Diff line number Diff line change 1
1
# CHANGELOG
2
2
3
+ ## 4.36.0
4
+ * Configuration option ` with_annotation ` has been deprecated in favor of ` with_attribute `
5
+ ``` diff
6
+ nelmio_api_doc:
7
+ areas:
8
+ path_patterns:
9
+ - ^/api/foo
10
+ - with_annotation: true
11
+ + with_attribute: true
12
+ ```
13
+
3
14
## 4.35.0
4
15
* Added support for the symfony/type-info component
5
16
``` yaml
Original file line number Diff line number Diff line change 163
163
164
164
<!-- Type describers (symfony/type-info) -->
165
165
<service id =" nelmio_api_doc.type_describer.chain" class =" Nelmio\ApiDocBundle\TypeDescriber\ChainDescriber" public =" false" >
166
- <argument type =" tagged " tag =" nelmio_api_doc.type_describer" />
166
+ <argument type =" tagged_iterator " tag =" nelmio_api_doc.type_describer" />
167
167
168
168
<tag name =" nelmio_api_doc.type_describer" priority =" 1000" />
169
169
</service >
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ The bundle configuration is stored under the ``nelmio_api_doc`` key in your appl
54
54
# Example:
55
55
# - ^api_v1
56
56
# whether to filter by attributes
57
- with_attribute : false
57
+ with_attribute : false
58
58
# if set disables default routes without attributes
59
59
disable_default_routes : false
60
60
# The base documentation used for the area
@@ -94,6 +94,10 @@ Whether to use `symfony/type-info`_ for determining types.
94
94
95
95
If you are using Symfony 7.2 or higher, you should set this option to ``true ``. As this greatly improves type detection.
96
96
97
+ .. versionadded :: 4.35
98
+
99
+ Support for `symfony/type-info `_ was added in 4.35.
100
+
97
101
use_validation_groups
98
102
~~~~~~~~~~~~~~~~~~~~~
99
103
@@ -193,7 +197,7 @@ Filter the routes that are documented.
193
197
name_patterns :
194
198
# Example:
195
199
# - ^api_v1
196
- with_attribute : false
200
+ with_attribute : false
197
201
disable_default_routes : false
198
202
documentation :
199
203
# Example:
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ Q: I have a property that is not recognized. How can I specify the type?
250
250
type_info : true
251
251
# ...
252
252
253
- .. versionadded :: 7.2
253
+ .. versionadded :: 4.35
254
254
255
255
The `TypeInfo component `_ was introduced as a stable feature in Symfony 7.2.
256
256
Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ General PHP objects
413
413
type_info : true
414
414
# ...
415
415
416
- .. versionadded :: 7.2
416
+ .. versionadded :: 4.35
417
417
418
418
The `TypeInfo component `_ was introduced as a stable feature in Symfony 7.2.
419
419
You can’t perform that action at this time.
0 commit comments