Skip to content

Commit 5197a0e

Browse files
committed
parameter validation constraints
1 parent 3489d5b commit 5197a0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/filters.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,8 @@ class User {}
333333

334334
Note that when `castToNativeType` is enabled, API Platform infers type validation from the JSON Schema.
335335

336+
The `ApiPlatform\Validator\Util\ParameterValidationConstraints` trait can be used to automatically infer validation constraints from the JSON Schema and OpenAPI definitions of a parameter.
337+
336338
Here is the list of validation constraints that are automatically inferred from the JSON Schema and OpenAPI definitions of a parameter.
337339

338340
### From OpenAPI Definition

0 commit comments

Comments
 (0)