title: I'm racking my head and can't figure out why I'm getting No value associated with key CodingKeys error
body: <p>I've been racking my head for the last day trying to figure out why I'm getting the error below.  I've tried changing from an array to a dictionary and no luck.</p>
  <pre><code>failure(Swift.DecodingError.keyNotFound(CodingKeys(stringValue: &quot;datalist&quot;, intValue: nil), Swift.DecodingError.Context(codingPath: [], debugDescription: &quot;No value associated with key CodingKeys(stringValue: \&quot;datalist\&quot;, intValue: nil) (\&quot;datalist\&quot;).&quot;, underlyingError: nil)))
  </code></pre>
  <p>I'm using <code>Combine</code> and I can see that I'm getting data pack using Postman.</p>
  <p>Here's the beginning part of my struct</p>
  <pre><code>struct WelcomeList: Codable , Identifiable {
      let id = UUID()
      let datalist: [DATUMVAList]
      let links: Links
      let meta: MetaVAList
  }
  
  // MARK: - DATUMVAList
  struct DATUMVAList: Codable {
      let id, type: String
      let attributes: AttributesVAList
  }
  </code></pre>
  <p>Here's my function and I'm failing at the completion part.</p>
  <pre><code>typealias vaNearbyList = [WelcomeList]
  
      class VAFacilityNearbyList: ObservableObject {
          struct AppError {
              // swiftlint:disable:next identifier_name
              let errorString: String
          }
      
          @Published var vaNearbyList: [WelcomeList] = []
          @Published var errorResponse: String = &quot;&quot;
          var locationIDData: [String] = []
          var cancellabes = Set&lt;AnyCancellable&gt;()
          var appError: AppError? = nil
      
          enum UserFetchError: Error {
              case badServerResponse
              case urlEmpty
              case other
          }
      
          func getNearByVAFacilitiesInfo(idArray: [String]) {
              // We need to create the URL to get the list of facilities
              var vaURL = &quot;https://sandbox-api.va.gov/services/va_facilities/v0/facilities?ids=&quot;
              for vaID in idArray {
                  vaURL += &quot;,\(vaID)&quot;
              }
              print(&quot;\(#function) vaURL \(vaURL)&quot;)
      
              var URLBuilder = URLComponents(string: vaURL) //vha_659BZ,vha_544gc
              guard let url = URLBuilder?.url else { return }
      
              var request = URLRequest(url: url)
      //        request.httpMethod = &quot;GET&quot;
              request.setValue(VA_API_Key, forHTTPHeaderField: &quot;apikey&quot;)
      
              URLSession.shared.dataTaskPublisher(for: request)
                  .subscribe(on: DispatchQueue.global(qos: .background))
                  .receive(on: DispatchQueue.main)
                  .tryMap { (returnData, response) -&gt; Data in
                      guard
                          let response = response as? HTTPURLResponse,
                            response.statusCode &gt;= 200 &amp;&amp; response.statusCode &lt; 300 else {
                                self.appError = AppError(errorString: &quot;\(UserFetchError.badServerResponse)&quot;)
                                throw UserFetchError.badServerResponse
                      }
                      print(&quot;\(#function) response \(response.statusCode)&quot;)
                      print(&quot;\(#function) returning data \(returnData)&quot;)
                      return returnData
                  }
                  .decode(type: WelcomeList.self, decoder: JSONDecoder())
                  .sink { (completion) in
                      print(&quot;\(#function) completion - \(completion)&quot;)
                  } receiveValue: { [weak self] (returnedVAListData) in
                      print(&quot;\(#function) returnedData - \(returnedVAListData)&quot;)
                      self?.vaNearbyList = [returnedVAListData]
                  }
                  .store(in: &amp;cancellabes)
          }
      }
  </code></pre>
  <p>Here's the data I'm getting back.  Thanks!</p>
  <pre><code>{
      &quot;data&quot;: [
          {
              &quot;id&quot;: &quot;vha_544GC&quot;,
              &quot;type&quot;: &quot;va_facilities&quot;,
              &quot;attributes&quot;: {
                  &quot;name&quot;: &quot;Rock Hill VA Clinic&quot;,
                  &quot;facility_type&quot;: &quot;va_health_facility&quot;,
                  &quot;classification&quot;: &quot;Primary Care CBOC&quot;,
                  &quot;website&quot;: &quot;https://www.columbiasc.va.gov/locations/RockHill.asp&quot;,
                  &quot;lat&quot;: 34.97720057,
                  &quot;long&quot;: -81.02445796,
                  &quot;time_zone&quot;: &quot;America/New_York&quot;,
                  &quot;address&quot;: {
                      &quot;mailing&quot;: {},
                      &quot;physical&quot;: {
                          &quot;zip&quot;: &quot;29732-1836&quot;,
                          &quot;city&quot;: &quot;Rock Hill&quot;,
                          &quot;state&quot;: &quot;SC&quot;,
                          &quot;address_1&quot;: &quot;2670 Mills Park Drive&quot;,
                          &quot;address_2&quot;: null,
                          &quot;address_3&quot;: null
                      }
                  },
                  &quot;phone&quot;: {
                      &quot;fax&quot;: &quot;803-325-1612&quot;,
                      &quot;main&quot;: &quot;803-366-4848&quot;,
                      &quot;pharmacy&quot;: &quot;888-651-2683&quot;,
                      &quot;after_hours&quot;: &quot;803-776-4000 x57200&quot;,
                      &quot;patient_advocate&quot;: &quot;803-776-4000 x56937&quot;,
                      &quot;mental_health_clinic&quot;: &quot;803-325-9526&quot;,
                      &quot;enrollment_coordinator&quot;: &quot;803-776-4000 x55815&quot;
                  },
                  &quot;hours&quot;: {
                      &quot;friday&quot;: &quot;800AM-430PM&quot;,
                      &quot;monday&quot;: &quot;800AM-430PM&quot;,
                      &quot;sunday&quot;: &quot;Closed&quot;,
                      &quot;tuesday&quot;: &quot;800AM-430PM&quot;,
                      &quot;saturday&quot;: &quot;Closed&quot;,
                      &quot;thursday&quot;: &quot;800AM-430PM&quot;,
                      &quot;wednesday&quot;: &quot;800AM-430PM&quot;
                  },
                  &quot;operational_hours_special_instructions&quot;: null,
                  &quot;services&quot;: {
                      &quot;other&quot;: [],
                      &quot;health&quot;: [
                          &quot;Audiology&quot;,
                          &quot;Dermatology&quot;,
                          &quot;MentalHealthCare&quot;,
                          &quot;PrimaryCare&quot;,
                          &quot;SpecialtyCare&quot;
                      ],
                      &quot;last_updated&quot;: &quot;2022-01-16&quot;
                  },
                  &quot;satisfaction&quot;: {
                      &quot;health&quot;: {
                          &quot;primary_care_urgent&quot;: 0.7400000095367432,
                          &quot;primary_care_routine&quot;: 0.8500000238418579
                      },
                      &quot;effective_date&quot;: &quot;2021-03-05&quot;
                  },
                  &quot;wait_times&quot;: {
                      &quot;health&quot;: [
                          {
                              &quot;service&quot;: &quot;Audiology&quot;,
                              &quot;new&quot;: 52.25,
                              &quot;established&quot;: 2.35
                          },
                          {
                              &quot;service&quot;: &quot;Dermatology&quot;,
                              &quot;new&quot;: 0.125,
                              &quot;established&quot;: 2.333333
                          },
                          {
                              &quot;service&quot;: &quot;MentalHealthCare&quot;,
                              &quot;new&quot;: 30.17647,
                              &quot;established&quot;: 4.017241
                          },
                          {
                              &quot;service&quot;: &quot;PrimaryCare&quot;,
                              &quot;new&quot;: 14.3125,
                              &quot;established&quot;: 1.52759
                          },
                          {
                              &quot;service&quot;: &quot;SpecialtyCare&quot;,
                              &quot;new&quot;: 38.133333,
                              &quot;established&quot;: 3.304347
                          }
                      ],
                      &quot;effective_date&quot;: &quot;2022-01-16&quot;
                  },
                  &quot;mobile&quot;: false,
                  &quot;active_status&quot;: &quot;A&quot;,
                  &quot;operating_status&quot;: {
                      &quot;code&quot;: &quot;NORMAL&quot;
                  },
                  &quot;detailed_services&quot;: null,
                  &quot;visn&quot;: &quot;7&quot;
              }
          }
      ],
      &quot;links&quot;: {
          &quot;self&quot;: &quot;https://sandbox-api.va.gov/services/va_facilities/v0/facilities?ids=vha_544GC&amp;page=1&amp;per_page=10&quot;,
          &quot;first&quot;: &quot;https://sandbox-api.va.gov/services/va_facilities/v0/facilities?ids=vha_544GC&amp;page=1&amp;per_page=10&quot;,
          &quot;prev&quot;: null,
          &quot;next&quot;: null,
          &quot;last&quot;: &quot;https://sandbox-api.va.gov/services/va_facilities/v0/facilities?ids=vha_544GC&amp;page=1&amp;per_page=10&quot;
      },
      &quot;meta&quot;: {
          &quot;pagination&quot;: {
              &quot;current_page&quot;: 1,
              &quot;per_page&quot;: 10,
              &quot;total_pages&quot;: 1,
              &quot;total_entries&quot;: 1
          },
          &quot;distances&quot;: []
      }
  }
  </code></pre>