When i copied the categories tests and try to run them I get the error :
failed - typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [ModelCodingKey(stringValue: “name”, intValue: nil)], debugDescription: “Could not decode property”, underlyingError: Optional(Swift.DecodingError.keyNotFound(ModelCodingKey(stringValue: “name”, intValue: nil), Swift.DecodingError.Context(codingPath: [], debugDescription: “No value associated with key ModelCodingKey(stringValue: "name", intValue: nil) ("name").”, underlyingError: nil)))))
on the testGettingASingleCategoryFromTheAPI().
i have tried to solve the error by decoding the category with App.Category.self but the error still stays. Anyone have any ideas ?
Thanks for a great book.