-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable updating top-level properties to null.
Support for writing top-level properties with null values at the time @odata.null:true was removed. The 4.0 spec states in 1.2.3 Requesting Individual Properties that if the property is single-valued and has the null value, the service responds with 204 No Content. The library is correct in throwing an exception when asked to write a null top-level values. This change adds support for the scenario in the following ways: 1.) Writing a null top-level value still throws but with a well-defined error message. 2.) The scenario can be enabled by setting library to 6 compatibility mode in the reader and writer settings, i.e. settings.LibraryCompatibility = ODataLibraryCompatibility.Version6. In this case, the value is read and written as: "@odata.null":true 3.) The reader will support reading "@odata.null":true. However, it does not use the library compatibility mode to do so. The library compatibility mode has been added to the reader for the completness of the API.
- Loading branch information
1 parent
f023620
commit 9d625ff
Showing
31 changed files
with
435 additions
and
147 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
Oops, something went wrong.