components/policy/tools/schema_validator.py
def _ValidateArraySchema(self, schema):
    """Validates a |schema| with type 'array'.

    Validates that the 'items' attribute exists and its value is a valid schema.
    Args:
      schema (dict): The JSON schema.
    """
    if 'items' in schema:
      self._ValidateSchemaInternal(schema['items'])
    else:
      self._Error("Schema of type 'array' must have an 'items' attribute.")
Validates a |schema| with type 'array'.

    Validates that the 'items' attribute exists and its value is a valid schema.
    Args:
      schema (dict): The JSON schema.
    
Validates a |schema| with type 'array'.
Validates that the 'items' attribute exists and its value is a valid schema.
Validates a |schema| with type ' array ' . Validates that the ' items ' attribute exists and its value is a valid schema .
def _ValidateArraySchema(self, schema):
    if 'items' in schema:
      self._ValidateSchemaInternal(schema['items'])
    else:
      self._Error("Schema of type 'array' must have an 'items' attribute.")
def _ValidateArraySchema ( self , schema ) : if 'items' in schema : self . _ValidateSchemaInternal ( schema [ 'items' ] ) else : self . _Error ( "Schema of type 'array' must have an 'items' attribute." )
Validates a |schema| with type 'array'.
Validates a |schema| with type ' array ' .
"""Validates a |schema| with type 'array'.

    Validates that the 'items' attribute exists and its value is a valid schema.
    Args:
      schema (dict): The JSON schema.
    """
self
schema
The JSON schema.
The JSON schema .