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

    Validates the 'enum' property (see _ValidateEnum()) if existing. This
    method also ensures that the specified minimum value is smaller or equal to
    the specified maximum value, if both exist.
    Args:
      schema (dict): The JSON schema.
    """
    if 'enum' in schema:
      self._ValidateEnum(schema['enum'], 'integer')
    if ('minimum' in schema and 'maximum' in schema and
        schema['minimum'] > schema['maximum']):
      self._Error("Invalid range specified: [%s; %s]" % (schema['minimum'],
                                                         schema['maximum']))
Validates a |schema| with type 'integer'.

    Validates the 'enum' property (see _ValidateEnum()) if existing. This
    method also ensures that the specified minimum value is smaller or equal to
    the specified maximum value, if both exist.
    Args:
      schema (dict): The JSON schema.
    
Validates a |schema| with type 'integer'.
Validates the 'enum' property ) if existing. This
method also ensures that the specified minimum value is smaller or equal to
the specified maximum value, if both exist.
Validates a |schema| with type ' integer ' . Validates the ' enum ' property ) if existing . This method also ensures that the specified minimum value is smaller or equal to the specified maximum value if both exist .
def _ValidateIntegerSchema(self, schema):
    if 'enum' in schema:
      self._ValidateEnum(schema['enum'], 'integer')
    if ('minimum' in schema and 'maximum' in schema and
        schema['minimum'] > schema['maximum']):
      self._Error("Invalid range specified: [%s; %s]" % (schema['minimum'],
                                                         schema['maximum']))
def _ValidateIntegerSchema ( self , schema ) : if 'enum' in schema : self . _ValidateEnum ( schema [ 'enum' ] , 'integer' ) if ( 'minimum' in schema and 'maximum' in schema and schema [ 'minimum' ] > schema [ 'maximum' ] ) : self . _Error ( "Invalid range specified: [%s; %s]" % ( schema [ 'minimum' ] , schema [ 'maximum' ] ) )
Validates a |schema| with type 'integer'.
Validates a |schema| with type ' integer ' .
"""Validates a |schema| with type 'integer'.

    Validates the 'enum' property (see _ValidateEnum()) if existing. This
    method also ensures that the specified minimum value is smaller or equal to
    the specified maximum value, if both exist.
    Args:
      schema (dict): The JSON schema.
    """
self
schema
The JSON schema.
The JSON schema .