Skip to content

Commit 8d690d9

Browse files
committed
Merge branch '7.4' into 8.0
* 7.4: [Validator] Video Constraint - fix options order and types
2 parents 686c471 + dea322c commit 8d690d9

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
@@ -117,10 +117,18 @@ cannot be equal).
117117
If set, the height of the video file must be less than or equal to this value
118118
in pixels.
119119

120+
``maxPixels``
121+
~~~~~~~~~~~~~
122+
123+
**type**: ``integer`` | ``float``
124+
125+
If set, the total number of pixels (``width * height``) of the video file must be less
126+
than or equal to this value.
127+
120128
``maxRatio``
121129
~~~~~~~~~~~~
122130

123-
**type**: ``float``
131+
**type**: ``integer`` | ``float``
124132

125133
If set, the aspect ratio (``width / height``) of the video file must be less
126134
than or equal to this value. For example, a square video has a ratio of 1,
@@ -134,6 +142,14 @@ a 16:9 video has a ratio of 1.78, and a 4:3 video has a ratio of 1.33.
134142
If set, the width of the video file must be less than or equal to this value
135143
in pixels.
136144

145+
``mimeTypes``
146+
~~~~~~~~~~~~~
147+
148+
**type**: ``array`` or ``string`` **default**: ``video/*``
149+
150+
See the :ref:`File mimeTypes option <reference-constraints-file-mime-types>` for a
151+
description of this option and a list of common video MIME types.
152+
137153
``minHeight``
138154
~~~~~~~~~~~~~
139155

@@ -145,23 +161,15 @@ value in pixels.
145161
``minPixels``
146162
~~~~~~~~~~~~~
147163

148-
**type**: ``float``
164+
**type**: ``integer`` | ``float``
149165

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

153-
``maxPixels``
154-
~~~~~~~~~~~~~
155-
156-
**type**: ``float``
157-
158-
If set, the total number of pixels (``width * height``) of the video file must be less
159-
than or equal to this value.
160-
161169
``minRatio``
162170
~~~~~~~~~~~~
163171

164-
**type**: ``float``
172+
**type**: ``integer`` | ``float``
165173

166174
If set, the aspect ratio (``width / height``) of the video file must be greater
167175
than or equal to this value.
@@ -174,14 +182,6 @@ than or equal to this value.
174182
If set, the width of the video file must be greater than or equal to this value
175183
in pixels.
176184

177-
``mimeTypes``
178-
~~~~~~~~~~~~~
179-
180-
**type**: ``array`` or ``string`` **default**: ``video/*``
181-
182-
See the :ref:`File mimeTypes option <reference-constraints-file-mime-types>` for a
183-
description of this option and a list of common video MIME types.
184-
185185
.. include:: /reference/constraints/_groups-option.rst.inc
186186

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

0 commit comments

Comments
 (0)