original_docstring: Validate the values of the fields in model data
  
      Validations performed:
          enums (see _validate_enum)
          numeric values (see _validate_number)
          notifications
          cookie definitions (see _validate_cookie_def)
  
      Args:
          data (pkcollections.Dict): model data
          schema (pkcollections.Dict): schema which data inmplements
      
docstring: Validate the values of the fields in model data
  Validations performed:
  enums
  numeric values
  notifications
  cookie definitions
docstring_tokens: Validate the values of the fields in model data Validations performed : enums numeric values notifications cookie definitions
code: def validate_fields(data, schema):
      """Validate the values of the fields in model data
  
      Validations performed:
          enums (see _validate_enum)
          numeric values (see _validate_number)
          notifications
          cookie definitions (see _validate_cookie_def)
  
      Args:
          data (pkcollections.Dict): model data
          schema (pkcollections.Dict): schema which data inmplements
      """
      sch_models = schema.model
      sch_enums = schema.enum
      for model_name in data.models:
          if model_name not in sch_models:
              continue
          sch_model = sch_models[model_name]
          model_data = data.models[model_name]
          for field_name in model_data:
              if field_name not in sch_model:
                  continue
              val = model_data[field_name]
              if val == '':
                  continue
              sch_field_info = sch_model[field_name]
              _validate_enum(val, sch_field_info, sch_enums)
              _validate_number(val, sch_field_info)
code_tokens: def validate_fields ( data , schema ) : sch_models = schema . model sch_enums = schema . enum for model_name in data . models : if model_name not in sch_models : continue sch_model = sch_models [ model_name ] model_data = data . models [ model_name ] for field_name in model_data : if field_name not in sch_model : continue val = model_data [ field_name ] if val == '' : continue sch_field_info = sch_model [ field_name ] _validate_enum ( val , sch_field_info , sch_enums ) _validate_number ( val , sch_field_info )
short_docstring: Validate the values of the fields in model data
  Validations performed:
  enums (see _validate_enum)
  numeric values (see _validate_number)
  notifications
  cookie definitions (see _validate_cookie_def)
short_docstring_tokens: Validate the values of the fields in model data Validations performed : enums ( see _validate_enum ) numeric values ( see _validate_number ) notifications cookie definitions ( see _validate_cookie_def )
comment: """Validate the values of the fields in model data
  
      Validations performed:
          enums (see _validate_enum)
          numeric values (see _validate_number)
          notifications
          cookie definitions (see _validate_cookie_def)
  
      Args:
          data (pkcollections.Dict): model data
          schema (pkcollections.Dict): schema which data inmplements
      """