(schema, value, path, validatedProperties)
| 495 | return errors |
| 496 | }, |
| 497 | patternProperties (schema, value, path, validatedProperties) { |
| 498 | const errors = [] |
| 499 | Object.entries(schema.patternProperties).forEach(([i, prop]) => { |
| 500 | const regex = new RegExp(i) |
| 501 | /* Check which properties match */ |
| 502 | Object.entries(value).forEach(([j, v]) => { |
| 503 | if (regex.test(j)) { |
| 504 | validatedProperties[j] = true |
| 505 | errors.push(...this._validateSchema(prop, v, `${path}.${j}`)) |
| 506 | } |
| 507 | }) |
| 508 | }) |
| 509 | return errors |
| 510 | } |
| 511 | } |
| 512 | |
| 513 | this._validateObjectSubSchema2 = { |
nothing calls this directly
no test coverage detected