-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better errors for missing IDs in Patch Extension Request. (#1278)
* Return a better error when handling invalid patch extension requests that are missing IDs * Added tests Co-authored-by: Aaron Klish <[email protected]>
- Loading branch information
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
elide-integration-tests/src/test/resources/ResourceIT/invalidPatchMissingId.req.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[ | ||
{ | ||
"op":"add", | ||
"path":"/book", | ||
"value":{ | ||
"type":"book", | ||
"relationships":{ | ||
"authors":{ | ||
"data":[ | ||
{ | ||
"type":"author", | ||
"id":"authorId" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"op":"add", | ||
"path":"/author", | ||
"value":{ | ||
"id":"authorId", | ||
"type":"author" | ||
} | ||
} | ||
] |