Frends.JSON.Validate / 2.0.0
Summary
Checks a JSON document against a JSON Schema and returns the individual violations rather than only a verdict.
Typical use — screening inbound payloads at the boundary, so bad data is rejected with a reason instead of failing deeper in
Input parameters.
| Name | Type | Default | Example | Description |
|---|---|---|---|---|
| Json | Object |
– | {\"key\":\"value\"} |
Json input needs to be of type string or JToken. |
| JsonSchema | String |
– | {\"type\": \"object\", \"properties\": {\"name\": {\"type\":\"string\"} } } |
Json Schema to validate to. Uses Newtonsoft JsonSchema |