Creates a SchemaCheck instance from a JSON Schema object or a file path to a JSON Schema.
The JSON Schema object or file path to create the SchemaCheck from.
StaticfromCreates a SchemaCheck instance from a JSON Schema object or a file path to a JSON Schema.
The JSON Schema object to create the SchemaCheck from.
A new instance of SchemaCheck.
StaticfromCreates a SchemaCheck instance from a JSON Schema file path.
The file path to the JSON Schema.
A new instance of SchemaCheck.
Performs a check against the provided input using the schema.
The input value to be validated against the schema.
A promise that resolves to an ObjectCheck instance.
Retrieves the result of the last performed check.
Optionaloptions: ResultOptionsOptional result options to customize the validation result.
The result of the last check, or an error if no check has been performed.
Shorthand for performing a check and immediately retrieving the result, useful for simple validations or testing.
The input value to be validated against the schema.
Optionaloptions: ResultOptionsOptional result options to customize the validation result.
A promise that resolves to the validation result.
Builds an ObjectCheck from a standard JSON Schema object or JSON file path.
Current support is intentionally limited to a reviewable subset of JSON Schema:
type,properties,required,additionalProperties: falseitems,minItems,maxItemsminLength,maxLength,pattern,format,enum,constminimum,maximum,exclusiveMinimum,exclusiveMaximum,multipleOfThe class currently does not implement reference or conditional features such as
$ref,if/then/else, tuple arrays, or pattern-based property schemas.