-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dao) allows JSON NULL in CRUD operations (#2700)
Thanks to this change, we can now remove fields (if permitted by the entity schema) by passing a JSON NULL (`ngx.null` or `cjson.null`) to said field. A field updated with NULL during a PATCH (partial update) will retain its `ngx.null` value after validation, and the DAO must infer this value to the correct NULL representation of its interface (CQL/SQL). During a PUT (full update), fields with a JSON NULL will be treated as if they were not specified (like create). No such behavior is available when sending `application/x-www-form-urlencoded` MIME type requests, this is only to support `cjson.null`/`ngx.null`. Signed-off-by: Thibault Charbonnier <[email protected]>
- Loading branch information
1 parent
1d19a61
commit fc82dd7
Showing
7 changed files
with
222 additions
and
10 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
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
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
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