geoh5py.ui_json.validations package#

Submodules#

geoh5py.ui_json.validations.uijson module#

class geoh5py.ui_json.validations.uijson.ErrorPool(errors: dict[str, list[Exception]])#

Bases: object

Stores validation errors for all UIJson members.

throw()#

Raise the UIJsonError with detailed list of errors per parameter.

exception geoh5py.ui_json.validations.uijson.UIJsonError(message: str)#

Bases: Exception

Exception raised for errors in the UIJson object.

geoh5py.ui_json.validations.uijson.dependency_type_validation(name: str, data: dict[str, Any], params: dict[str, Any])#

Dependency is optional or bool type.

geoh5py.ui_json.validations.uijson.mesh_type_validation(name: str, data: dict[str, Any], params: dict[str, Any])#

Promoted value is one of the provided mesh types.

geoh5py.ui_json.validations.uijson.parent_validation(name: str, data: dict[str, Any], params: dict[str, Any])#

Data is a child of the parent object.

Module contents#

geoh5py.ui_json.validations.get_validations(form_keys: list[str]) list[Callable]#

Returns a list of callable validations based on identifying form keys.