RicoSuter/NJsonSchema

Ability to ignore case related errors.

Aperta

#250 aperta il 21 nov 2016

 (2 commenti) (0 reazioni) (0 assegnatari)C# (549 fork)github user discovery
help wantedtype: enhancement

Metriche repository

Star
 (1581 stelle)
Metriche merge PR
 (Merge medio 39g 6h) (1 PR mergiata in 30 g)

Descrizione

I would like the ability to ignore errors regarding casing.

The problem is validating json with improper casing ie {Name:"Derek"} vs {name:"Derek"} generates the error "NoAdditionalPropertiesAllowed". This is the same as the error I would get with the validation against {name1:"Derek"}. What are the thoughts of adding a ValidationErrorKind.PropertyMismatch that makes it easier to distinguish this.

I'm happy to hope in and code this, just want to make sure its inline with the goals of this open source project first.

Thanks!

Guida contributor