Alexander Shabunevich
bf9fd0d106
Prevent null refs when copying a property with a null value
...
* Fix aspnet/AspNetCore#3559 Json Patch: System.NullReferenceException while trying to use copy operation from property with null value.
* Fix aspnet/AspNetCore#3559 : Missing tests added.
2018-11-08 14:29:34 -08:00
Ryan Nowak
891ae28851
Merge branch 'release/2.2'
2018-10-31 14:24:26 -07:00
Ryan Nowak
3b485909eb
Fix aspnet/AspNetCore#3634
2018-10-31 14:12:55 -07:00
David
0b76599c31
Improve conformance of replace operations to spec
...
This ensures that JSON patch "replace" operations are functionally
equivalent to "remove" operations followed by "add" operations at the
same path, as RFC 6902 specifies.
Addresses #110
2018-10-12 19:27:38 -07:00
DHumphreys
4d92d76b64
Initial commit providing the AdapterFactory directly to the ObjectAdapter to all for customization of the Adapter selection and the ability to override the built in adapters to leverage their ability as much as possible.
2018-05-11 17:44:47 -07:00
Ryan Brandenburg
d7ac5c57ef
Upgrade to netcoreapp22
2018-05-07 16:31:00 -07:00
Ajay Bhargav Baaskaran
63f0322810
Allow whitespace and backslash in path
2018-02-27 15:24:36 -08:00
Pranav K
39db8585c1
Target netcoreapp2.1 in tests and samples
2017-11-13 17:00:56 -08:00
arerlend
70c8133fce
allow paths that contain '.' ( #125 )
...
* allow paths that contain '.'
* remove InvalidPathWithDotShouldThrowException test
2017-11-07 11:24:52 -08:00
Nate McMaster
478c640a68
Pin tool and package versions to make builds more repeatable
...
Part of aspnet/Universe#575
2017-11-01 15:11:36 -07:00
Jass Bagga
e453fafad5
Reorganize tests ( #117 )
...
Addresses #105
2017-10-26 12:51:06 -07:00
Jass Bagga
e46ba481c8
Throw JsonSerializationException from converters ( #116 )
2017-10-19 13:32:04 -07:00
Jass Bagga
8eefe0fdc2
Add Test Operation ( #114 )
...
Addresses #1
2017-10-19 10:46:08 -07:00
Jass Bagga
f1efb29b18
Use ContractResolver instead of forcing to lower case ( #112 )
...
Addresses #90
2017-10-11 14:09:35 -07:00
Jass Bagga
bf5c043de3
Refactor GetPath in JsonPatchDocumentOfT ( #107 )
...
Addresses #98
2017-09-11 09:54:29 -07:00
Jass Bagga
0f51c56c3f
Combine ExpandoObjectAdapter and DictionaryAdapter ( #106 )
...
Use JsonDictionaryContract in the DictionaryAdapter and combine with ExpandoObjectAdapter
2017-09-05 16:07:25 -07:00
Jass Bagga
3d6a8615de
Support DynamicObject types ( #99 )
...
Addresses #38
2017-08-24 15:11:01 -07:00
Jass Bagga
d4b64af0e6
Use DictionaryKeyResolver for ExpandoObjectAdapter ( #100 )
...
Addresses #102
2017-08-23 10:30:11 -07:00
Nate McMaster
a993c2a5ff
Use PackageLineup to manage versions (revert revert)
...
We resolved the issues with PackageLineup and partial graph builds.
This reverts commit 01bf47170f .
2017-08-18 16:31:06 -07:00
Nate McMaster
01bf47170f
Revert lineups change until we work out issues with PackageLineup
...
This reverts commit a2c0410e39 .
2017-08-18 10:43:19 -07:00
Nate McMaster
a2c0410e39
Use PackageLineup to manage package versions
2017-08-17 16:16:40 -07:00
Ryan Brandenburg
e4f3b9d624
Remove NETSTandard.Library.NETFramework
2017-07-07 10:27:00 -07:00
Jass Bagga
c816bce13a
Refactor invalid operation exception handling ( #87 )
...
Addresses part of #80
2017-06-21 12:35:31 -07:00
Kiran Challa
d9531031a8
Updated to netstandard2.0
2017-06-06 12:03:01 -07:00
Kiran Challa
e3114dc6a4
Temporarily change tfm to netstandard1.3
...
Ideally we want to target netstandard2.0 but this conversion is blocked on the issue: https://github.com/dotnet/sdk/issues/1219
2017-05-19 14:00:08 -07:00
Nate McMaster
a7524e189d
Upgrade test framework versions and fix test issues
2017-05-15 16:14:55 -07:00
Jass Bagga
378136f794
Change TFM to netcoreapp2.0 ( #78 )
2017-05-05 16:12:46 -07:00
Pranav K
f66753cc3c
Remove net451 as a cross-compile target
2017-03-24 16:01:41 -07:00
Kiran Challa
d2be921ca4
Converted test project to run on netcoreapp2.0
2017-03-22 15:24:04 -07:00
Nate McMaster
832cbdcee8
Unify dependency versions to one file
2017-03-15 15:11:25 -07:00
Thierry Fleury
d3a09ca9e8
Correct ListAdapter tests
...
Modifying a ReadOnlyCollection will always fail
2017-03-08 12:46:57 -08:00
Thierry Fleury
42d0d40b36
[ Fixes #61 ] Move must keep object reference
2017-03-08 12:26:10 -08:00
Nate McMaster
8051f3671b
Downgrade to stable packages
2017-02-14 16:15:33 -08:00
Doug Bunting
50abb557fc
Bump test projects up to .NET 4.5.2
...
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
2017-02-13 12:18:55 -08:00
Jass Bagga
48ab68bd2a
Upgrade to msbuild
...
Addresses #57
2017-01-30 15:58:19 -08:00
Kiran Challa
b240929cf4
Merge branch 'rel/1.1.1' into dev
...
Conflicts:
NuGet.config
src/Microsoft.AspNetCore.JsonPatch/project.json
test/Microsoft.AspNetCore.JsonPatch.Test/project.json
2017-01-26 14:02:29 -08:00
Kiran Challa
7a487a880a
[ Fixes #48 ] Regression: List add must support adding items where index is same as count of elements
2017-01-26 13:48:12 -08:00
Jass Bagga
0795ec1d9a
Add tests for Replace operation with null checks for property ( #56 )
...
See #32
2017-01-26 11:28:35 -08:00
Kiran Challa
e8452821b9
[ Fixes #50 ] JsonPatchDocument.Replace() yields invalid path when [JsonProperty] is used (1.1.0)
2017-01-03 15:15:01 -08:00
Pranav K
c8c2dfaad9
Updating to 4.4 CoreFx packages
2016-12-14 14:47:29 -08:00
Pranav K
4faf89030c
Pinning versions for 1.1.0 release
2016-11-18 12:12:17 -08:00
Pranav K
6ee6220e06
Updating versions to 1.2.0-*
2016-11-09 14:18:11 -08:00
Cyprien Autexier
fe2453b93a
Escaping support for JSON pointers
2016-11-07 22:11:22 -08:00
Kiran Challa
81931e75d4
Handle exceptions for invalid operation types
...
Related to https://github.com/aspnet/Mvc/issues/5463
2016-11-03 14:43:35 -07:00
Pranav K
17a4e83bab
Updating to netcoreapp1.1
2016-10-13 11:19:06 -07:00
Pranav K
681812d0f4
Revert "Updating to netcoreapp1.1"
...
This reverts commit ddcee4774d .
2016-10-12 16:08:53 -07:00
Pranav K
ddcee4774d
Updating to netcoreapp1.1
2016-10-12 13:45:39 -07:00
Kiran Challa
393c25988a
[ Fixes #33 ] Dictionary operations fail due to contract issues
2016-10-06 15:43:42 -07:00
Pranav K
9e8aee2478
Updating partner package versions
2016-09-28 11:51:01 -07:00
Kevin Dockx
c88aa0042a
Fix for issue #29 (Honor JsonProperty when serializing a JsonPatchDocument) ( #35 )
...
* Fix for issue #29 (Honor JsonProperty when serializing a JsonPatchDocument)
2016-09-28 09:37:21 -07:00