Tools
Display
Validation
- belso.tools.validating.validate_schema(data, schema)[source]
Validate that the provided data conforms to the given schema.
Args
data (
Union[Dict[str, Any], str]
): the data to validate (either a dict or JSON string).schema (
Type[belso.Schema]
): the schema to validate against.
Returns:
Dict[str, Any]
: the validated data.