(value, schema: JSON_TYPE, subsample_array: bool = True)
Validate that the value is an instance of the schema.

    Parameters
    ----------
    value: JSON (int, float, str, list, dict) or JSON-like (tuple, np.ndarray, pd.DataFrame ...).
        Left-hand side of instance check.

    schema: JSON schema
        Right-hand side of instance check.

    subsample_array: bool
        Speed up checking by doing only partial conversion to JSON.

    Raises
    ------
    jsonschema.ValidationError
        The value was invalid for the schema.
Validate that the value is an instance of the schema.
Validate that the value is an instance of the schema .
def always_validate_schema(value, schema: JSON_TYPE, subsample_array: bool = True):
    """Validate that the value is an instance of the schema.

    Parameters
    ----------
    value: JSON (int, float, str, list, dict) or JSON-like (tuple, np.ndarray, pd.DataFrame ...).
        Left-hand side of instance check.

    schema: JSON schema
        Right-hand side of instance check.

    subsample_array: bool
        Speed up checking by doing only partial conversion to JSON.

    Raises
    ------
    jsonschema.ValidationError
        The value was invalid for the schema.
    """
    json_value = lale.helpers.data_to_json(value, subsample_array)
    jsonschema.validate(
        json_value, lale.helpers.data_to_json(schema, False), _lale_validator
    )
def always_validate_schema ( value , schema : JSON_TYPE , subsample_array : bool = True ) : json_value = lale . helpers . data_to_json ( value , subsample_array ) jsonschema . validate ( json_value , lale . helpers . data_to_json ( schema , False ) , _lale_validator )