(
this: Ajv,
defs: Vocabulary | {[K in string]?: KeywordDefinition}
)
| 791 | } |
| 792 | |
| 793 | function addInitialKeywords( |
| 794 | this: Ajv, |
| 795 | defs: Vocabulary | {[K in string]?: KeywordDefinition} |
| 796 | ): void { |
| 797 | if (Array.isArray(defs)) { |
| 798 | this.addVocabulary(defs) |
| 799 | return |
| 800 | } |
| 801 | this.logger.warn("keywords option as map is deprecated, pass array") |
| 802 | for (const keyword in defs) { |
| 803 | const def = defs[keyword] as KeywordDefinition |
| 804 | if (!def.keyword) def.keyword = keyword |
| 805 | this.addKeyword(def) |
| 806 | } |
| 807 | } |
| 808 | |
| 809 | function getMetaSchemaOptions(this: Ajv): InstanceOptions { |
| 810 | const metaOpts = {...this.opts} |
nothing calls this directly
no test coverage detected
searching dependent graphs…