parameters: (self, x, fieldname, schema, properties=None, location="config")
docstring: Validates properties of a JSON object by processing the object's
          schema recursively
docstring_summary: Validates properties of a JSON object by processing the object's
          schema recursively
docstring_tokens: Validates properties of a JSON object by processing the object s schema recursively
function: def validate_properties(self, x, fieldname, schema, properties=None, location="config"):
          '''
          Validates properties of a JSON object by processing the object's
          schema recursively
          '''
          def validate_one_property(value, properties, location, fieldname):
              if isinstance(value, dict):
                  if isinstance(properties, dict):
                      for eachProp in properties:
                          self.__validate(eachProp, value,
                                          properties.get(eachProp), location + "." + fieldname)
                  else:
                      raise SchemaError("Properties definition of field '%s' is not an object" % fieldname)
  
          if fieldname == FIELD_WILDCARD:
              for actual_name, value in x.iteritems():
                  validate_one_property(value, properties, location, actual_name)
          elif x.get(fieldname) is not None:
              value = x.get(fieldname)
              validate_one_property(value, properties, location, fieldname)
function_tokens: def validate_properties ( self , x , fieldname , schema , properties = None , location = "config" ) : def validate_one_property ( value , properties , location , fieldname ) : if isinstance ( value , dict ) : if isinstance ( properties , dict ) : for eachProp in properties : self . __validate ( eachProp , value , properties . get ( eachProp ) , location + "." + fieldname ) else : raise SchemaError ( "Properties definition of field '%s' is not an object" % fieldname ) if fieldname == FIELD_WILDCARD : for actual_name , value in x . iteritems ( ) : validate_one_property ( value , properties , location , actual_name ) elif x . get ( fieldname ) is not None : value = x . get ( fieldname ) validate_one_property ( value , properties , location , fieldname )