:py:mod:`json2graph.modules.utils_validations` ============================================== .. py:module:: json2graph.modules.utils_validations .. autoapi-nested-parse:: Functions that performs validations for different functions or parameters used in the software. Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: json2graph.modules.utils_validations.validate_arg_input json2graph.modules.utils_validations.validate_execution_mode .. py:function:: validate_arg_input(input_path, decode_all) Validate the input path received as argument. :param input_path: The path to the input file or directory. :type input_path: str :param decode_all: A flag indicating whether to decode all files in the directory. :type decode_all: bool .. py:function:: validate_execution_mode(execution_mode) Validate the provided execution mode against a list of valid modes. This function validates the given execution mode against a predefined list of valid modes: ["script", "import", "test"]. It ensures that the provided mode is one of the accepted values, and if not, raises an error indicating the invalid parameter. :param execution_mode: The execution mode to be validated. :type execution_mode: str