2 ms·
Here is a JSON Schema validation failure taken straight out of the Snowplow test suite (pretty printed): { "level": "error", "schema": { "loadi
by alexatkeplar 12y ago
Here is a JSON Schema validation failure taken straight out of the Snowplow test suite (pretty printed):
{
"level": "error",
"schema": {
"loadingURI": "#",
"pointer": ""
},
"instance": {
"pointer": ""
},
"domain": "validation",
"keyword": "required",
"message": "object has missing required properties ([\"targetUrl\"])",
"required": [
"targetUrl"
],
"missing": [
"targetUrl"
]
}
You can't seriously prefer a NullPointerException (or choose your poison) three functions later.
- VMG 12y agoI'll admit that this doesn't look too bad, but it's an additional effort. You wouldn't do this for very simple formats.