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
Copy file name to clipboardExpand all lines: core/filters.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -342,21 +342,21 @@ Here is the list of validation constraints that are automatically inferred from
342
342
### From JSON Schema (`schema` property)
343
343
344
344
***`minimum`** / **`maximum`**:
345
-
* If both are set, a `Symfony\Component\Validator\Constraints\Range` constraint is added.
346
-
* If only `minimum` is set, a `Symfony\Component\Validator\Constraints\GreaterThanOrEqual` constraint is added.
347
-
* If only `maximum` is set, a `Symfony\Component\Validator\Constraints\LessThanOrEqual` constraint is added.
345
+
* If both are set, a `Symfony\Component\Validator\Constraints\Range` constraint is added.
346
+
* If only `minimum` is set, a `Symfony\Component\Validator\Constraints\GreaterThanOrEqual` constraint is added.
347
+
* If only `maximum` is set, a `Symfony\Component\Validator\Constraints\LessThanOrEqual` constraint is added.
348
348
***`exclusiveMinimum`** / **`exclusiveMaximum`**:
349
-
* If `exclusiveMinimum` is used, it becomes a `Symfony\Component\Validator\Constraints\GreaterThan` constraint.
350
-
* If `exclusiveMaximum` is used, it becomes a `Symfony\Component\Validator\Constraints\LessThan` constraint.
349
+
* If `exclusiveMinimum` is used, it becomes a `Symfony\Component\Validator\Constraints\GreaterThan` constraint.
350
+
* If `exclusiveMaximum` is used, it becomes a `Symfony\Component\Validator\Constraints\LessThan` constraint.
351
351
***`pattern`**: Becomes a `Symfony\Component\Validator\Constraints\Regex` constraint.
352
352
***`minLength`** / **`maxLength`**: Becomes a `Symfony\Component\Validator\Constraints\Length` constraint.
353
353
***`multipleOf`**: Becomes a `Symfony\Component\Validator\Constraints\DivisibleBy` constraint.
354
354
***`enum`**: Becomes a `Symfony\Component\Validator\Constraints\Choice` constraint with the specified values.
355
355
***`minItems`** / **`maxItems`**: Becomes a `Symfony\Component\Validator\Constraints\Count` constraint (for arrays).
356
356
***`uniqueItems`**: If `true`, becomes a `Symfony\Component\Validator\Constraints\Unique` constraint (for arrays).
357
357
***`type`**:
358
-
* If set to `'array'`, a `Symfony\Component\Validator\Constraints\Type('array')` constraint is added.
359
-
* If `castToNativeType` is also `true`, the schema `type` will add a `Symfony\Component\Validator\Constraints\Type` constraint for `'boolean'`, `'integer'`, and `'number'` (as `float`).
358
+
* If set to `'array'`, a `Symfony\Component\Validator\Constraints\Type('array')` constraint is added.
359
+
* If `castToNativeType` is also `true`, the schema `type` will add a `Symfony\Component\Validator\Constraints\Type` constraint for `'boolean'`, `'integer'`, and `'number'` (as `float`).
360
360
361
361
### From the Parameter's `required` Property
362
362
@@ -432,15 +432,15 @@ class WithParameter
432
432
}
433
433
```
434
434
435
-
#### Configuration Options
435
+
#####Configuration Options
436
436
437
437
The `IriConverterParameterProvider` supports the following options in `extraProperties`:
438
438
439
439
-**`fetch_data`**: Boolean (default: `false`) - When `true`, forces the IRI converter to fetch the actual entity data instead of just creating a reference.
440
440
441
441
### `ReadLinkParameterProvider`
442
442
443
-
This provider fetches a linked resource from a given identifier. This is useful when you need to load a related entity to use later, for example in your own state provider.
443
+
This provider fetches a linked resource from a given identifier. This is useful when you need to load a related entity to use later, for example in your own state provider.
444
444
When you have an API resource with a custom `uriTemplate` that includes parameters, the `ReadLinkParameterProvider` can automatically resolve the linked resource using the operation's URI template. This is particularly useful for nested resources or when you need to load a parent resource based on URI variables.
0 commit comments