* Rename JsonClassInfo to JsonTypeInfo
* Move existing metadata types to new Metadata sub-folder/sub-namespace
* Add JsonMetadataServices and APIs needed by source generator
* Add tests and address feedback
* Rename ClassType to ConverterStrategy and clean up usage
* Move JsonSerializerContext to S.T.J.Serialization namespace and address doc feedback
- Unify workhorse implementations across all inbox encoders
- Refactor most unsafe code from TextEncoder workhorse routines into standalone helpers
- Fix bounds check logic in workhorse routines
- SSSE3-optimize central workhorse routine
- Remove vestigial code from the library and unit test project
- Add significant unit test coverage for the workhorse routines and unsafe helpers
- Ref: CVE-2021-26701 (MSRC 62749)
* Disable failing Apple Silicon Libraries tests
- Use tests.proj to disable catastrophically failing libraries tests
- Add ActiveIssues where XUnit didn't crash
* Enable CoreCLR lib tests for Apple Silicon in Runtime-Staging
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Eric Erhardt <[email protected]>
Co-authored-by: Marek Safar <[email protected]>
Co-authored-by: Alexander Köplinger <[email protected]>
* Big-endian fix for JsonClassInfo.GetKey
* Skip assertion in JsonClassInfo.GetKey on big-endian
(code will not ensure the properties tested here)
* Update src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonClassInfo.Cache.cs
Co-authored-by: Stephen Toub <[email protected]>
* New test that JsonIncludeAttribute is honored during deserialization
ArgumentDeserialization_Honors_JsonInclude test is added #47855
* New test that JsonNumberHandlingAttribute is honored during deserialization
ArgumentDeserialization_Honors_JsonNumberHandling test is added #47855
* Extended Point_MembersHave_JsonInclude class for variety of test cases
Added new lines
* IntPtr and UIntPtr were added as DisallowedTypes
NotSupportedException is fired when IntPtr/UIntPtr is being serialized/deserialized
* Returned typeof(T) calls back
Enable string.LastIndexOf (and some of the other StringComparison paths) to be trimmed in a default Blazor wasm app, and don't require an ICU fallback as only ordinal is required here.
The following sentence in the doc comments for the `IgnoreReadOnlyFields` member:
> A property is read-only if it isn't marked with the <c>readonly</c> keyword.
Should read:
> A field is read-only if it is marked with the <c>readonly</c> keyword.
* Fix another doc comment typo in JsonSerializerOptions.cs
The following sentence in the doc comments for the `IncludeFields` member:
> Determines whether fields are handled serialization and deserialization.
Should read:
> Determines whether fields are handled **during** serialization and deserialization.
* Update src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerOptions.cs
Co-authored-by: Eirik Tsarpalis <[email protected]>
* Add option to ignore reference cycles on serialization
* Fix whitespace
* Combine IsValueType check on WriteCoreAsObject
* Add missing null-forgiving operator
* Fix perf regression by using ReferenceHandlerStrategy field in JsonSerializerOptions
* Address suggestions
* Rename API to IgnoreCycles
* Add missing letter to test class name
* Fix CI issue with nullable annotation
* Use [NotNullWhen(true)] in more places
Did a quick search/audit for methods that returned bool and took nullable object as the first input, and added [NotNullWhen(true)] where it was obviously correct.
* Address PR feedback
* [browser][tests][outerloop] Standup OuterLoop tests on CI
* System.Collections.NonGeneric.Tests passing
* System.Console.Tests passing
* System.Diagnostics.DiagnosticSource.Tests passing
* System.Globalization.Tests passing
- See active issue https://github.com/dotnet/runtime/issues/45951
* System.IO.FileSystem.Tests passing after deactivating test cannot wait on monitors on this runtime.
* System.IO.FileSystem.Tests passing - See active issue: https://github.com/dotnet/runtime/issues/45954
* Remove fat fingered code.
* Threads not supported on Browser
* Browser does not support monitor
* Browser does not support monitor
* Browser does not support wait on monitors
* Browser does not support wait on monitors
* Add ActiveIssue for DataFlow tests TestNullTarget_CompletionNoCaching
* Add ActiveIssue for DataFlow tests
* Add ActiveIssue for DataFlow tests
* Add threading support conditional
* Change all Cannot wait on monitors on this runtime Browser platform checks to
[ConditionalXXXX(typeof(PlatformDetection), nameof(PlatformDetection.IsThreadingSupported))]
As was suggested in comments
* Address review comment for monitors not supported
* Address review comments
* Add threading supported condition.
```
fail: [FAIL] System.Text.Json.Serialization.Tests.EnumConverterTests.VeryLargeAmountOfEnumsToSerialize
[08:10:56] info: System.PlatformNotSupportedException : Cannot wait on monitors on this runtime.
```
* Remove unnecessary OrderBy / copy from MemoryCache.Compact
* Replace First() in ILEmitResolverBuilder with [0]
* Remove stale "using System.Linq;" from System.Text.Json
* Remove stale "using System.Linq;" from System.Security.Cryptography.X509Certificates
* Remove some LINQ usage from System.Security.Cryptography.Pkcs
* Remove System.Linq reference from System.Private.Xml
* Remove System.Linq reference from System.Net.WebHeaderCollection
* Remove stale "using System.Linq;" from CookieContainer
* Remove stale "using System.Linq;" from AltSvcHeaderParser
* Remove Enumerable.Contains on a string from System.IO.Packaging
* Remove System.Linq dependency from System.Diagnostics.Process
* Remove LINQ usage from Microsoft.Extensions.Options
* Remove LINQ usage from Microsoft.Extensions.Logging
* Remove LINQ usage from Microsoft.Extensions.Logging.Console
* Remove LINQ from CollectionExtensions.GetAssets/RuntimeFiles
* Update src/libraries/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/Rfc3161TimestampToken.cs
Co-authored-by: Jeremy Barton <[email protected]>
Co-authored-by: Jeremy Barton <[email protected]>
* Handle unicode and e-notation differences between S.T.J and J.N tests
Fixes#32350
* Remove TODO
* Bumping CI
* Bump CI
* Handle relaxed escaping and precision properly
* Move else if
* Move else if back
* Remove relaxedEscaping param and skip whitespace
* Apply Jozkee final touches
* Add missing period
Co-authored-by: David Cantu <[email protected]>
* Repro #42070
* formatting
* namespace
* Fix
* never forget the header
* More tests
- Test continuation at every position inside the tested object
- Many member with primitive and nullable types
- One more level of nested object
- All combinations of class/struct for tested and nested object
- tested and nested object with parametrized ctor for some properties
* Addressed feedback
* refactoring
* Test with original repro data from #42070
* custom converter to ensure the padding is written in front of the tested object
* rename
* test data moved to Strings.resx
* Using test data from SR
* Generalize continuation tests for payloads of any length
Tweak the payload and expect `JsonException`
* merge
* Test deserialize with Utf8JsonReader and ReadOnlySequence
* Again with value typed nested object
* Add tests for splitted whitespaces
* Addressed feedback
Added dictionary test
* Validate line and position of failure in tweaked payloads
more tweaks
* Fixed comment
Co-authored-by: Layomi Akinrinade <[email protected]>