MCPcopy Create free account
hub / github.com/json-editor/json-editor / unknownFormat

Function unknownFormat

docs/scripts/ajv-validator.js:6183–6192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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)

Callers 1

validateFormatFunction · 0.85

Calls 1

unknownMsgFunction · 0.85

Tested by

no test coverage detected