Base handler¶
Base handler
Module realize base class for all handlers.
- class luna_tasks.app.handlers.base_handler.BaseRequestHandler(request)[source]¶
Base handler for other handlers.
- async loadMarshmallowFromJson(schema, returnLoadedData=False)[source]¶
Deserialize an input dictionary to an application-level data structure.
- Parameters:
schema – marshmallow schema
returnLoadedData – whether to return loaded data from schema or not
- Returns:
json as dict if validated
- Raises:
VLException(Error.InvalidInputJson, 400, isCriticalError=False) – if validation is failed
- Return type:
Any