nvflare.private.fed.app.fl_app_validator module

class FLAppValidator(site_type: str, custom_validators: List[AppValidator] | None = 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, app_validation_props)

error_msg contains error message if failed to pass; otherwise an empty string. app_validation_props is a dict of properties of the app.

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