Closed ianpartridge closed 6 years ago
As SwiftyJSON is now a known cause of bugs (cf #185) please can we prioritise this work?
@ianpartridge we managed 50% of this, unfortunately we still have the dependency in SwiftMetricsBluemix for now.
Is it just this function that needs reworking? https://github.com/RuntimeTools/SwiftMetrics/blob/master/Sources/SwiftMetricsBluemix/SwiftMetricsBluemix.swift#L445
Yes, I briefly looked at doing it with Codable but I ran out of time. We also don't have full details of the object that we're receiving from Bluemix which makes things tricky.
The object comes from the auto-scaling service doesn't it? Do they not document a schema or something?
Not for the REST call that we use, it's not part of the public API - https://console.bluemix.net/apidocs/48-auto-scaling?&language=node#introduction
From the output of
swift package show-dependencies
:We have eradicated SwiftyJSON from Kitura as the new
Codable
features in Swift 4 render it obsolete. We should remove it from SwiftMetrics too as it gets pulled in by every scaffolded project.