nvflare.private.fed.app.fl_app_validator module

class FLAppValidator(custom_validators: Optional[List[AppValidator]] = None)[source]

Bases: AppValidator

validate(app_folder: str) Tuple[str, Dict][source]

Validate and/or clean the content of specified application folder.

Parameters

app_folder – path to the app folder to be validated

Returns

A tuple of (error_msg, authorization_context)

error_msg contains error message if failed to pass; otherwise an empty string. authorization_context is the context needed by authorization.

For example: the result could be (“”, {“byoc”: True, “custom_datalist”: True})