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
| Name | Type | Description |
|---|---|---|
| schema | dict | The JSON schema definition used to validate data structures and field types. |
Returns
| Type | Description |
|---|---|
Callable | A function that accepts a data object and returns a boolean indicating whether the data conforms to the schema. |