headless/lib/browser/devtools_api/client_api_generator.py
def EnsureCommandsHaveParametersAndReturnTypes(json_api):
  """Make sure all commands have at least empty parameters and return values.
  This guarantees API compatibility if a previously experimental command is made
  stable.
  """
  for domain in json_api['domains']:
    for command in domain.get('commands', []):
      if not 'parameters' in command:
        command['parameters'] = []
      if not 'returns' in command:
        command['returns'] = []
    for event in domain.get('events', []):
      if not 'parameters' in event:
        event['parameters'] = []
Make sure all commands have at least empty parameters and return values.
  This guarantees API compatibility if a previously experimental command is made
  stable.
  
Make sure all commands have at least empty parameters and return values.
This guarantees API compatibility if a previously experimental command is made
stable.
Make sure all commands have at least empty parameters and return values . This guarantees API compatibility if a previously experimental command is made stable .
def EnsureCommandsHaveParametersAndReturnTypes(json_api):
  for domain in json_api['domains']:
    for command in domain.get('commands', []):
      if not 'parameters' in command:
        command['parameters'] = []
      if not 'returns' in command:
        command['returns'] = []
    for event in domain.get('events', []):
      if not 'parameters' in event:
        event['parameters'] = []
def EnsureCommandsHaveParametersAndReturnTypes ( json_api ) : for domain in json_api [ 'domains' ] : for command in domain . get ( 'commands' , [ ] ) : if not 'parameters' in command : command [ 'parameters' ] = [ ] if not 'returns' in command : command [ 'returns' ] = [ ] for event in domain . get ( 'events' , [ ] ) : if not 'parameters' in event : event [ 'parameters' ] = [ ]
Make sure all commands have at least empty parameters and return values.
Make sure all commands have at least empty parameters and return values .
"""Make sure all commands have at least empty parameters and return values.
  This guarantees API compatibility if a previously experimental command is made
  stable.
  """
json_api