MCPcopy
hub / github.com/ajv-validator/ajv / addFormat

Method addFormat

lib/core.ts:649–653  ·  view source on GitHub ↗
(name: string, format: Format)

Source from the content-addressed store, hash-verified

647
648 // Add format
649 addFormat(name: string, format: Format): Ajv {
650 if (typeof format == "string") format = new RegExp(format)
651 this.formats[name] = format
652 return this
653 }
654
655 errorsText(
656 errors: ErrorObject[] | null | undefined = this.errors, // optional array of validation errors

Callers 8

addInitialFormatsFunction · 0.80
standalone.spec.tsFile · 0.80
ajv.spec.tsFile · 0.80
addFormatEnglishWordFunction · 0.80
testFunction · 0.80
testFunction · 0.80

Calls

no outgoing calls

Tested by 4

addFormatEnglishWordFunction · 0.64
testFunction · 0.64
testFunction · 0.64