RicoSuter/NJsonSchema

Ability to ignore case related errors.

Aberta

#250 aberto em 21 de nov. de 2016

 (2 comentários) (0 reação) (0 responsável)C# (550 forks)github user discovery
help wantedtype: enhancement

Métricas do repositório

Stars
 (1.581 estrelas)
Métricas de merge de PR
 (Mesclagem média 39d 6h) (1 fundiu PR em 30d)

Description

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!

Guia do colaborador