elgonzo

Results 144 comments of elgonzo

> NewtonSoft's JSON Schema Validator (https://www.jsonschemavalidator.net/) says that the following schema is valid: I disagree. Proof: https://www.jsonschemavalidator.net/s/LMWx5Nkg

Ah, i see. It seems to be a bug or limitation in the _JsonSchemaController.Valiate_ method implemented in the www.jsonschemavalidator.net backend, which only uses the simple `JSchema.Parse` overload ```C# // load...

Yeah, validation of URIs is a bit borked. Newtonsoft.Json.Schema uses the `System.Uri.IsWellFormedUriString` method for validating URIs: https://github.com/JamesNK/Newtonsoft.Json.Schema/blob/5a68513e38d899d49f0842ba82a2235154ce3c18/Src/Newtonsoft.Json.Schema/Infrastructure/Validation/PrimativeScope.cs#L296-L299 Unfortunately, `Uri.IsWellFormedUriString` is a bit ...uh... temperamental, with its behavior changing depending on...

@JamesNK > There are both valid: This is _not_ unconditionally true. This only applies to older draft versions up to draft 6, where the definition of the "date-time" attribute was...

Well, as a side note, the whole "format" shenanigans have reached peak epic status in draft 2019-09, where "format" should either be treated as an annotation (that _may_ or may...

This seems to be related to the Xamarin runtime and not so much with Newtonsoft.Json itself. I find it difficult to believe that Newtonsoft.Json could possibly be responsible for a...

Considering for how long the Newtonsoft.Json libarary is available and how widely Newtonsoft.Json is being adopted, a change in established default behavior of the library is astronomically unlikely. The solution...

Hmm, what should happen in a case like this for example? ```C# class Testing { [JsonRequired] public float testValue = 0f; } ``` Clearly, a value has been explicitly set...

> Maybe just a simple check if it's not equal to the default value? Or even a way to specify in the field that it just must not be the...

Who knows, maybe -- probably -- you made a mistake setting up the serializer, not having the serializer configured to use your `JsonNetCustomAttributeProcessing` contract resolver. Please provide a _minimal_ and...