Skip to content

Commit 8cc6d02

Browse files
committed
Add error object without recommended properties
1 parent c28e2a1 commit 8cc6d02

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

tests/files/10_error_with_links.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
{
22
"errors": [
33
{
4-
"code": "123",
5-
"source": { "pointer": "/data/attributes/first-name" },
6-
"title": "Value is too short",
4+
"code": "123",
5+
"source": {
6+
"pointer": "/data/attributes/first-name"
7+
},
8+
"title": "Value is too short",
79
"links": {
810
"about": "http://example.org/errors/123"
911
}
10-
},
12+
},
1113
{
12-
"code": "124",
14+
"code": "124",
1315
"links": {
1416
"about": {
1517
"href": "http://example.org/errors/124"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"errors": [
3+
{
4+
"description": "some description about the error"
5+
}
6+
],
7+
"jsonapi": {
8+
"version": "1.0"
9+
}
10+
}

0 commit comments

Comments
 (0)