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

Method addVocabulary

lib/core.ts:584–587  ·  view source on GitHub ↗
(definitions: Vocabulary)

Source from the content-addressed store, hash-verified

582
583 // add "vocabulary" - a collection of keywords
584 addVocabulary(definitions: Vocabulary): Ajv {
585 for (const def of definitions) this.addKeyword(def)
586 return this
587 }
588
589 addKeyword(
590 kwdOrDef: string | KeywordDefinition,

Callers 5

_addVocabulariesMethod · 0.95
_addVocabulariesMethod · 0.95
_addVocabulariesMethod · 0.80
_addVocabulariesMethod · 0.80
addInitialKeywordsFunction · 0.80

Calls 1

addKeywordMethod · 0.95

Tested by

no test coverage detected