(it: SchemaCxt, schema: AnySchema)
| 12 | } |
| 13 | |
| 14 | export function alwaysValidSchema(it: SchemaCxt, schema: AnySchema): boolean | void { |
| 15 | if (typeof schema == "boolean") return schema |
| 16 | if (Object.keys(schema).length === 0) return true |
| 17 | checkUnknownRules(it, schema) |
| 18 | return !schemaHasRules(schema, it.self.RULES.all) |
| 19 | } |
| 20 | |
| 21 | export function checkUnknownRules(it: SchemaCxt, schema: AnySchema = it.schema): void { |
| 22 | const {opts, self} = it |
no test coverage detected
searching dependent graphs…