You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'num' => new QueryParameter(schema: ['minimum' => 1, 'maximum' => 3]),
1870
+
'exclusiveNum' => new QueryParameter(schema: ['exclusiveMinimum' => 1, 'exclusiveMaximum' => 3]),
1871
+
'blank' => new QueryParameter(openApi: new OpenApiParameter(name: 'blank', in: 'query', allowEmptyValue: false)),
1872
+
'length' => new QueryParameter(schema: ['maxLength' => 1, 'minLength' => 3]),
1873
+
'array' => new QueryParameter(schema: ['minItems' => 2, 'maxItems' => 3]),
1874
+
'multipleOf' => new QueryParameter(schema: ['multipleOf' => 2]),
1875
+
'pattern' => new QueryParameter(schema: ['pattern' => '/\d/']),
1876
+
'required' => new QueryParameter(required: true),
1877
+
],
1878
+
)]
1879
+
class ValidateParameter {}
1880
+
```
1881
+
1882
+
You can also use your own constraint by setting the `constraints` option on a Parameter. In that case we won't setup the automatic validation for you and it'll replace our defaults.
0 commit comments