[[toc]]
lib/core.ts - core Ajv class without any keywords. All Ajv methods for managing schemas and extensions are defined in this class.
lib/ajv.ts - subclass of Ajv core with JSON Schema draft-07 keywords.
lib/2019.ts - subclass of Ajv core with JSON Schema draft-2019-09 keywords.
lib/jtd.ts - subclass of Ajv core with JSON Type Definition support.
lib/compile - code for schema compilation
lib/compile/index.ts - the main recursive function code for schema compilation, functions for reference resolution, the interface for schema compilation context (SchemaCxt
).
lib/compile/context.ts - the class for keyword code generation KeywordCxt
. All pre-defined keywords and user-defined keywords that use code
function are passed an instance of this class.
lib/compile/rules.ts - data structure to store references to all all keyword definitions that were added to Ajv instance, organised by data type.
lib/compile/subschema.ts - creates schema context (SchemaCxt
) to generate code for subschemas - used by all applicator keywords in lib/vocabularies/applicator.
lib/compile/codegen - the api for code generation.
lib/compile/validate - code to iterate the schema to generate code of validation function.
lib/standalone - module to generate standalone validation code.
lib/vocabularies - pre-defined validation keywords.
lib/refs - JSON Schema meta-schemas.