-
Notifications
You must be signed in to change notification settings - Fork 358
[DRAFT] New OData Writer stack #3233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
habbes
wants to merge
298
commits into
dev-9.x
Choose a base branch
from
odl-9-new-writer
base: dev-9.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains hidden or 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
… methods instead of metdata writer
* Create tests * Add support for types that implement IEnumerable<T> * Add support for non-generic IEnumerable * Support generic types that implement IEnumerable<T> with a different element type
* Add nullable enum tests * Implement support for nullable enums
* Add tests * Add tests with type info * Write null if resource is null
…erties with null values. (#3413) * Create tests * Implement support for skipping null reference type properties * Support for skipping nullable value types * ODataIgnore.WhenWritingNull should not skip non-nullable value types
…ignore properties of a type. (#3414) * Create tests * Handle ODataIgnoreProperties conditions in type info factory * Add more ODataIgnore tests * Add tests to verify ODataIgnore and ODataIgnoreProperties precedence rules * Resolve precedence between property-level and class-level ignore conditions * Update test for better clarity * Update test for better clarity
…not written (#3419) * Add tests * Add async hook test case * Write property name only if IStreamValueWriter Write methods are called
#3421) * Add tests * Fix serialization parity in DateTimeOffset
* Add tests for basic JsonElement input support * Create ODataElementEnumeratorSelector to enumerate collections * Auto-detect whether type info should be used for resources or collections * Create hybrid writer that supports writing resources and collections based on ValueKind * property async enumerable selector test * Implement async enumerable property selector (inefficiently) * Create test for async elements selector * Implement async enumerable element selector (inefficiently) * Correctly detect resource-based property info when GetOpenProperties is set * Create interface for writing property values to buffer * Fix writer provider precendence rules and heuristics * Allow writing to raw value * Fix raw value writer tests * Minor cleanup * Untyped json from async source tests
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issues
This pull request fixes ##3236.
Description
New OData Writer stack with better performance and better integration with System.Text.Json
Checklist (Uncheck if it is not completed)
Additional work necessary
If documentation update is needed, please add "Docs Needed" label to the issue and provide details about the required document change in the issue.