Skip to main content

build_schema_validator

No overview available.

def build_schema_validator(
schema: dict
) - > Callable

Constructs a validation function for checking data against a specific JSON schema. Use this to ensure incoming payloads or configuration objects adhere to required structures and data types before processing.

Parameters

NameTypeDescription
schemadictThe JSON schema definition used to validate data structures and field types.

Returns

TypeDescription
CallableA function that accepts a data object and returns a boolean indicating whether the data conforms to the schema.