nvflare.apis.app_validation module

class AppValidationKey[source]

Bases: object

BYOC = 'byoc'
CUSTOM_DATA_LIST = 'custom_datalist'
class AppValidator[source]

Bases: ABC

abstract 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})