(schema, value, path)
| 40 | return errors |
| 41 | }, |
| 42 | dependentSchemas (schema, value, path) { |
| 43 | let errors = [] |
| 44 | |
| 45 | Object.keys(schema.dependentSchemas).forEach((key) => { |
| 46 | if (typeof value[key] !== 'undefined') { |
| 47 | const dependentSchema = schema.dependentSchemas[key] |
| 48 | const tmpErrors = this._validateSchema(dependentSchema, value, path) |
| 49 | errors = [...errors, ...tmpErrors] |
| 50 | } |
| 51 | }) |
| 52 | |
| 53 | return errors |
| 54 | }, |
| 55 | contains (schema, value, path) { |
| 56 | const errors = [] |
| 57 | let counter = 0 |
nothing calls this directly
no test coverage detected