original_docstring: Ensure the value of an enum field is one listed in the schema
  
      Args:
          val: enum value to validate
          sch_field_info ([str]): field info array from schema
          sch_enums (pkcollections.Dict): enum section of the schema
      
docstring: Ensure the value of an enum field is one listed in the schema
docstring_tokens: Ensure the value of an enum field is one listed in the schema
code: def _validate_enum(val, sch_field_info, sch_enums):
      """Ensure the value of an enum field is one listed in the schema
  
      Args:
          val: enum value to validate
          sch_field_info ([str]): field info array from schema
          sch_enums (pkcollections.Dict): enum section of the schema
      """
      type = sch_field_info[1]
      if not type in sch_enums:
          return
      if str(val) not in map(lambda enum: str(enum[0]), sch_enums[type]):
          raise AssertionError(util.err(sch_enums, 'enum {} value {} not in schema', type, val))
code_tokens: def _validate_enum ( val , sch_field_info , sch_enums ) : type = sch_field_info [ 1 ] if not type in sch_enums : return if str ( val ) not in map ( lambda enum : str ( enum [ 0 ] ) , sch_enums [ type ] ) : raise AssertionError ( util . err ( sch_enums , 'enum {} value {} not in schema' , type , val ) )
short_docstring: Ensure the value of an enum field is one listed in the schema
short_docstring_tokens: Ensure the value of an enum field is one listed in the schema
comment: """Ensure the value of an enum field is one listed in the schema
  
      Args:
          val: enum value to validate
          sch_field_info ([str]): field info array from schema
          sch_enums (pkcollections.Dict): enum section of the schema
      """