You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This only occurs under Linux. Locally, there's no problem on MacOS. Under the debugger it seemed to be showing that value was present but its value was null, as if {"value": null}.
Resolved this way (ugh).
letdict= json as?[String:Any]letint= dict.flatMap({ d ->Any?inreturnd["aggregations"]}).flatMap({ d ->[String:Any]?inreturn d as?[String:Any]}).flatMap({ d ->Any?inreturnd["my_aggregation"]}).flatMap({ d ->[String:Any]?inreturn d as?[String:Any]}).flatMap({ d ->Any?inreturnd["value"]}).flatMap({ d ->Int?inreturn d as?Int})
I assume this is related to NSNumber being a shitshow on Linux, and thus isn't really Argo's problem. This issue is more for the benefit of everyone else.
(Related observation: if NSNumber's crufty addition of so many features is due to years of the "benefits" of ABI stability, I'm terrified for the consequences of Swift 5).
The text was updated successfully, but these errors were encountered:
Sample JSON
Models
Argo Version
4.1.2
Dependency Manager
Swift Package Manager.
This only occurs under Linux. Locally, there's no problem on MacOS. Under the debugger it seemed to be showing that
value
was present but its value was null, as if{"value": null}
.Resolved this way (ugh).
I assume this is related to NSNumber being a shitshow on Linux, and thus isn't really Argo's problem. This issue is more for the benefit of everyone else.
(Related observation: if NSNumber's crufty addition of so many features is due to years of the "benefits" of ABI stability, I'm terrified for the consequences of Swift 5).
The text was updated successfully, but these errors were encountered: