1.0.0-beta.3
·
323 commits
to main
since this release
Breaking changes
ResponseParseable
protocol reworked to only include single initializer instead of associated typeModelType
. Therefore, all generic methods that previously acceptedModel.ModelType
type now acceptModel
type.- Removed
performWithSuccess(_:failure:)
method, please useperform(success:failure:)
method instead.
Added
- Ability to create APIRequest with Array generic constraint, for example -
APIRequest<[Int],TronError>
Changed
ResponseParseable
initWithData:
method is now throwable, allowing parsed models to throw during initialization. When initializer throws,APIRequest
treats it as a parsing error.