()
| 6181 | if (fmtType === ruleType) |
| 6182 | cxt.pass(validCondition()); |
| 6183 | function unknownFormat() { |
| 6184 | if (opts.strictSchema === false) { |
| 6185 | self.logger.warn(unknownMsg()); |
| 6186 | return; |
| 6187 | } |
| 6188 | throw new Error(unknownMsg()); |
| 6189 | function unknownMsg() { |
| 6190 | return `unknown format "${schema}" ignored in schema at path "${errSchemaPath}"`; |
| 6191 | } |
| 6192 | } |
| 6193 | function getFormat(fmtDef) { |
| 6194 | const code = fmtDef instanceof RegExp |
| 6195 | ? (0, codegen_1.regexpCode)(fmtDef) |
no test coverage detected