-
-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"No value associated with key CodingKeys(stringValue: \"sheetData\", intValue: nil) (\"sheetData\")." #15
Comments
Thank you @maxvol, this is a very interesting one, |
Here it is - |
As previously reported, there are Excel documents in the wild that contain no `sheetData` node. While I was no able to recreate these sheets, I assume these still can be generated by some tools or apps. They do make sense as empty worksheets, so let's allow these in the `Worksheet` model type. To cleanup the naming a new non-optional property `data` has been added. The previous name and type are aliased for source compatibility with a deprecation warning. Resolves #15. * Rename sheetData on Worksheet and make it optional * Fix incorrect deprecation warning for `sheetData`
(lldb) po file.parseWorksheetPaths()
▿ 3 elements
(lldb) po file.parseWorksheet(at: "xl/worksheets/sheet3.xml")
▿ DecodingError
▿ keyNotFound : 2 elements
- .0 : CodingKeys(stringValue: "sheetData", intValue: nil)
▿ .1 : Context
- codingPath : 0 elements
- debugDescription : "No value associated with key CodingKeys(stringValue: "sheetData", intValue: nil) ("sheetData")."
- underlyingError : nil
The text was updated successfully, but these errors were encountered: