(value, schema: JSON_TYPE, subsample_array: bool = True)
return always_validate_schema(value, schema, subsample_array=subsample_array)
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 validate_schema_directly(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.
    """
    from lale.settings import disable_hyperparams_schema_validation

    if disable_hyperparams_schema_validation:
        return True  # if schema validation is disabled, always return as valid
    return always_validate_schema(value, schema, subsample_array=subsample_array)
def validate_schema_directly ( value , schema : JSON_TYPE , subsample_array : bool = True ) : from lale . settings import disable_hyperparams_schema_validation if disable_hyperparams_schema_validation : return True # if schema validation is disabled, always return as valid return always_validate_schema ( value , schema , subsample_array = subsample_array )