nvflare.private.fed.app.default_app_validator module

class DefaultAppValidator(site_type: str, config_folder: str = 'config')[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})