MCPcopy Create free account
hub / github.com/SAP/ui5-project / filterErrors

Method filterErrors

lib/validation/ValidationError.js:123–131  ·  view source on GitHub ↗
(allErrors)

Source from the content-addressed store, hash-verified

121 }
122
123 static filterErrors(allErrors) {
124 return allErrors.filter((error, i, errors) => {
125 if (error.keyword === "if" || error.keyword === "oneOf") {
126 return false;
127 }
128
129 return !ValidationError._findDuplicateError(error, i, errors);
130 });
131 }
132
133 static analyzeYamlError({error, yaml}) {
134 if (error.instancePath === "" && error.keyword === "required") {

Callers 2

constructorMethod · 0.80
ValidationError.jsFile · 0.80

Calls 1

_findDuplicateErrorMethod · 0.80

Tested by

no test coverage detected