RicoSuter/NJsonSchema

Ability to ignore case related errors.

開放

#250 建立於 2016年11月21日

 (2 則留言) (0 個反應) (0 位負責人)C# (550 個分叉)github user discovery
help wantedtype: enhancement

倉庫指標

星標
 (1,581 顆星)
PR 合併指標
 (平均合併 39天 6小時) (30 天內合併 1 個 PR)

描述

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!

貢獻者指南