Skip to content

Commit dea322c

Browse files
committed
minor symfony#21487 [Validator] Video Constraint - fix options order and types (wkania)
This PR was merged into the 7.4 branch. Discussion ---------- [Validator] Video Constraint - fix options order and types Related to symfony#21486 Fixed also alphabetic order of option names. Commits ------- 8a6001d [Validator] Video Constraint - fix options order and types
2 parents ebaf496 + 8a6001d commit dea322c

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

reference/constraints/Video.rst

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,18 @@ cannot be equal).
121121
If set, the height of the video file must be less than or equal to this value
122122
in pixels.
123123

124+
``maxPixels``
125+
~~~~~~~~~~~~~
126+
127+
**type**: ``integer`` | ``float``
128+
129+
If set, the total number of pixels (``width * height``) of the video file must be less
130+
than or equal to this value.
131+
124132
``maxRatio``
125133
~~~~~~~~~~~~
126134

127-
**type**: ``float``
135+
**type**: ``integer`` | ``float``
128136

129137
If set, the aspect ratio (``width / height``) of the video file must be less
130138
than or equal to this value. For example, a square video has a ratio of 1,
@@ -138,6 +146,14 @@ a 16:9 video has a ratio of 1.78, and a 4:3 video has a ratio of 1.33.
138146
If set, the width of the video file must be less than or equal to this value
139147
in pixels.
140148

149+
``mimeTypes``
150+
~~~~~~~~~~~~~
151+
152+
**type**: ``array`` or ``string`` **default**: ``video/*``
153+
154+
See the :ref:`File mimeTypes option <reference-constraints-file-mime-types>` for a
155+
description of this option and a list of common video MIME types.
156+
141157
``minHeight``
142158
~~~~~~~~~~~~~
143159

@@ -149,23 +165,15 @@ value in pixels.
149165
``minPixels``
150166
~~~~~~~~~~~~~
151167

152-
**type**: ``float``
168+
**type**: ``integer`` | ``float``
153169

154170
If set, the total number of pixels (``width * height``) of the video file must be greater
155171
than or equal to this value.
156172

157-
``maxPixels``
158-
~~~~~~~~~~~~~
159-
160-
**type**: ``float``
161-
162-
If set, the total number of pixels (``width * height``) of the video file must be less
163-
than or equal to this value.
164-
165173
``minRatio``
166174
~~~~~~~~~~~~
167175

168-
**type**: ``float``
176+
**type**: ``integer`` | ``float``
169177

170178
If set, the aspect ratio (``width / height``) of the video file must be greater
171179
than or equal to this value.
@@ -178,14 +186,6 @@ than or equal to this value.
178186
If set, the width of the video file must be greater than or equal to this value
179187
in pixels.
180188

181-
``mimeTypes``
182-
~~~~~~~~~~~~~
183-
184-
**type**: ``array`` or ``string`` **default**: ``video/*``
185-
186-
See the :ref:`File mimeTypes option <reference-constraints-file-mime-types>` for a
187-
description of this option and a list of common video MIME types.
188-
189189
.. include:: /reference/constraints/_groups-option.rst.inc
190190

191191
.. include:: /reference/constraints/_payload-option.rst.inc

0 commit comments

Comments
 (0)