File tree Expand file tree Collapse file tree 1 file changed +22
-25
lines changed Expand file tree Collapse file tree 1 file changed +22
-25
lines changed Original file line number Diff line number Diff line change @@ -12,31 +12,7 @@ This bundle provides support for [RFC 9457](https://www.rfc-editor.org/rfc/rfc94
1212composer require phauthentic/problem-details-symfony-bundle
1313```
1414
15- ## Problem Details Example
16-
17- ``` text
18- HTTP/1.1 422 Unprocessable Content
19- Content-Type: application/problem+json
20- Content-Language: en
21-
22- {
23- "type": "https://example.net/validation-error",
24- "title": "Your request is not valid.",
25- "errors": [
26- {
27- "detail": "must be a positive integer",
28- "pointer": "#/age"
29- },
30- {
31- "detail": "must be 'green', 'red' or 'blue'",
32- "pointer": "#/profile/color"
33- }
34- ]
35- }
36- ```
37-
38-
39- ## Documentation
15+ ## Docs
4016
4117``` php
4218class ExampleController
@@ -61,7 +37,28 @@ class ExampleController
6137}
6238```
6339
40+ ## Problem Details Example
6441
42+ ``` text
43+ HTTP/1.1 422 Unprocessable Content
44+ Content-Type: application/problem+json
45+ Content-Language: en
46+
47+ {
48+ "type": "https://example.net/validation-error",
49+ "title": "Your request is not valid.",
50+ "errors": [
51+ {
52+ "detail": "must be a positive integer",
53+ "pointer": "#/age"
54+ },
55+ {
56+ "detail": "must be 'green', 'red' or 'blue'",
57+ "pointer": "#/profile/color"
58+ }
59+ ]
60+ }
61+ ```
6562
6663## Alternatives
6764
You can’t perform that action at this time.
0 commit comments