Skip to content

Commit 8a7f475

Browse files
Updating readme.md
2 parents c6e70c6 + 1aa3358 commit 8a7f475

File tree

1 file changed

+22
-25
lines changed

1 file changed

+22
-25
lines changed

readme.md

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,7 @@ This bundle provides support for [RFC 9457](https://www.rfc-editor.org/rfc/rfc94
1212
composer 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
4218
class 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

0 commit comments

Comments
 (0)