code: def generate_enums(outf, enums, msgs):
      
  
      print("Generating Enums")
  
      for enum in enums:
          t.write(outf, """
  ${formatted_description}public enum ${swift_name}: ${raw_value_type}, Enum {
  ${{entry:${formatted_description}\tcase ${swift_name} = ${value}\n}}
  }
  
  extension ${swift_name} {
      public static var typeName = "${name}"
      public static var typeDescription = "${entity_description}"
      public static var typeDebugDescription: String {
          let cases = "\\n\\t".join(allMembers.map { $0.debugDescription })
          return "Enum \(typeName): \(typeDescription)\\nMembers:\\n\\t\(cases)"
      }
      public static var allMembers = [${all_entities}]
      public static var membersInfo = [${entities_info}]
  }
  
  """, enum)
docs: Iterate through all enums and create Swift equivalents