Azur Haljeta
02/02/2021, 3:11 PMHttpResponseValidator{}
doesn't work anymore in 1.5.0, why? It doesn't get called at all
https://ktor.io/docs/response-validation.htmlAzur Haljeta
02/02/2021, 3:27 PMAzur Haljeta
02/02/2021, 3:30 PMRustam Siniukov
02/02/2021, 3:30 PMexpectSuccess
in client config with false
2. custom validations happens AFTER default validation. so if you want to handle non 200 status, your validator will not be called, because default one already threw exceptionRustam Siniukov
02/02/2021, 3:31 PMAzur Haljeta
02/02/2021, 3:32 PMAzur Haljeta
02/02/2021, 3:32 PMAzur Haljeta
02/02/2021, 3:33 PMAzur Haljeta
02/02/2021, 3:33 PMvalidateResponse
if it doesn't get calledAzur Haljeta
02/02/2021, 3:34 PMRustam Siniukov
02/02/2021, 3:43 PMhandleResponseException
with minor code change
3. you want less strict validation - this is not supported, because it’s how feature is meant to be used. Previous behaviour was wrongAzur Haljeta
02/02/2021, 3:55 PMPrevious behaviour was wrongyou mean on how ktor handled validation before
1.5.0
Rustam Siniukov
02/02/2021, 4:00 PMAzur Haljeta
02/02/2021, 4:06 PMHttpResponse
is now wrapped within ClientRequestException
and that's what my logic relied on