Skip to content

Commit 9dbcf96

Browse files
committed
docs: update validation doc
1 parent ade232e commit 9dbcf96

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: admin/validation.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ API Platform Admin manages automatically two types of validation: client-side va
55
## Client-side Validation
66

77
If the API documentation indicates that a field is mandatory,
8-
API Platform Admin will automatically add a [required client-side validation](https://marmelab.com/react-admin/CreateEdit.html#per-input-validation-built-in-field-validators).
8+
API Platform Admin will automatically add a [required client-side validation](https://marmelab.com/react-admin/Validation.html#per-input-validation-built-in-field-validators).
99

1010
For instance, with API Platform as backend, if you write the following:
1111

@@ -25,7 +25,7 @@ class Book
2525
}
2626
```
2727

28-
If you create a new book and touch the "Title" field without typing, you will see:
28+
If you create a new book and try to submit without filling the "Title" field, you will see:
2929

3030
![Required title field](images/required-field.png)
3131

@@ -34,8 +34,7 @@ If you create a new book and touch the "Title" field without typing, you will se
3434
When the form is submitted and if submission errors are received,
3535
API Platform Admin will automatically show the errors for the corresponding fields.
3636

37-
To do so, it uses the [submission validation](https://marmelab.com/react-admin/CreateEdit.html#submission-validation) feature of React Admin,
38-
and the mapping between the response and the fields is done by the [schema analyzer](components.md#schemaanalyzer) with its method `getSubmissionErrors`.
37+
To do so, it uses the [Server-Side Validation](https://marmelab.com/react-admin/Validation.html#server-side-validation) feature of React Admin, and the mapping between the response and the fields is done by the [schema analyzer](components.md#hydra-schema-analyzer) with its method `getSubmissionErrors`.
3938

4039
API Platform is supported by default, but if you use another backend, you will need to override the `getSubmissionErrors` method.
4140

0 commit comments

Comments
 (0)