parameters: (target_dict)
docstring: Validates the inputs to the actions in a target.
docstring_summary: Validates the inputs to the actions in a target.
docstring_tokens: Validates the inputs to the actions in a target .
function: def ValidateActionsInTarget(target_dict):
    """Validates the inputs to the actions in a target."""
    target_name = target_dict.get('target_name')
    actions = target_dict.get('actions', [])
    for action in actions:
      action_name = action.get('action_name')
      if not action_name:
        raise GypError("Anonymous action in target %s. An action must have an 'action_name' field." % target_name)
      inputs = action.get('inputs', None)
      if inputs is None:
        raise GypError('Action in target %s has no inputs.' % target_name)
      action_command = action.get('action')
      if action_command and not action_command[0]:
        raise GypError("Empty action as command in target %s." % target_name)
function_tokens: def ValidateActionsInTarget ( target_dict ) : target_name = target_dict . get ( 'target_name' ) actions = target_dict . get ( 'actions' , [ ] ) for action in actions : action_name = action . get ( 'action_name' ) if not action_name : raise GypError ( "Anonymous action in target %s. An action must have an 'action_name' field." % target_name ) inputs = action . get ( 'inputs' , None ) if inputs is None : raise GypError ( 'Action in target %s has no inputs.' % target_name ) action_command = action . get ( 'action' ) if action_command and not action_command [ 0 ] : raise GypError ( "Empty action as command in target %s." % target_name )