RicoSuter/NJsonSchema
NJsonSchema reports validation error on a missing constrained but not required array
オープン
#742 opened on 2018/07/11
help wantedtype: bug
Repository metrics
- Stars
- (1,581 個のスター)
- PR merge metrics
- (平均マージ 39d 6h) (30d で 1 merged PR)
説明
Hi,
I am using NJosnSchema to validate json events for an API. One of schemas provided by API is this. Note it has an array field 'prohibited' which is NOT marked as required, but has a constraint imposed on it - if it's present, it must have at least one item.
Now, I try to validate this json using that schema - and it presents me with a validation error:
ArrayExpected: #/message.prohibited
I'd expect that should not be the case?