304 response validation #200
Replies: 2 comments 6 replies
-
Hi. I am reworking the whole validation process so now is probably the best time to decide on the nitty gritty like this before 1.0. So thanks a lot for the message. About 304 specifically: As you may have seen response body validation is skipped for 204 but not for 304 which indeed does not make much sense and we should skip that for 304 as well. |
Beta Was this translation helpful? Give feedback.
-
@MrBananaLord is this resolved or are there still some open ends? |
Beta Was this translation helpful? Give feedback.
-
Hi, I wonder how/if you are validating the 304 responses?
I run into an issue where response validation raised
ResponseInvalid
error when the rails app responded with 304. It's because this line expects the content type to be present and it'snil
for the 304.Since I am using custom middleware, I just won't validate 304's, but that might be worth looking into and thinking about :)
Beta Was this translation helpful? Give feedback.
All reactions