Tools

Display

belso.tools.displaying.display_schema(schema)[source]

Display a schema with nested fields.

Args

  • schema (Type[Schema]): The schema to 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.