Closed mackoj closed 5 years ago
Thanks @mackoj. Could you run the tests so that the fixtures get updated, and commit them. That's why the tests are failing. Could you also add a changelog entry
Ok, I will do it today.
It actually breaks Swift 4.1 support because CaseIterable has been added in Swift 4.2
Perhaps a cleaner way would be to just define a custom CaseIterable
below Swift 4.2, perhaps in Coding.swift
#if swift(<4.2)
public protocol CaseIterable {
static let allCases: [Self] { get }
}
#endif
In the interest of time I've just opened another PR here https://github.com/yonaskolb/SwagGen/pull/133. I opted to simply drop Swift 4.1 support
Remove old
cases
implementation and replacing it withCaseIterable