Revision 4970930c
Added by koszko over 1 year ago
html/repo_query.js | ||
---|---|---|
96 | 96 |
const schema = haketilo_schemas[$id]; |
97 | 97 |
const result = haketilo_validator.validate(response.json, schema); |
98 | 98 |
if (result.errors.length > 0) { |
99 |
console.error(result.errors); |
|
99 |
console.error("Haketilo:", result.errors);
|
|
100 | 100 |
|
101 | 101 |
const reg = new RegExp(schema.properties.$schema.pattern); |
102 | 102 |
if (response.json.$schema && !reg.test(response.json.$schema)) |
Also available in: Unified diff
prepend all generated console messages with 'Haketilo:'