prism icon indicating copy to clipboard operation
prism copied to clipboard

Respect `Prefer` header with validation proxy when server returns 501

Open hieucd04 opened this issue 4 years ago • 1 comments

Summary

I was able to use Prefer header to control returned mock response when using mock-server (Prefer: example=example-key). Then I switched to validation-proxy , hard-coded my upstream sever to return 501 for all requests and send a request to the validation-proxy with Prefer header as I did with mock-server. Surprisingly, it didn't work. I always returned the first example.

Is this how the validation-proxy is supposed to work?

Additional context

Prism: 4.4.0 (get via docker)

hieucd04 avatar Sep 21 '21 09:09 hieucd04

Hey @hieucd04 - Sorry this one got lost.

Your use case makes sense and our documentation does give the impression that unimplemented ops will be mocked, so it stands to reason that the Prefer header would be used do determine the correct way to mock.

We'll take a look at prioritizing this.

ryotrellim avatar Jan 31 '22 21:01 ryotrellim

Hey team! Please add your planning poker estimate with Zenhub @EdVinyard @daniel-white @brendarearden @matthewmurphy

chohmann avatar May 09 '23 14:05 chohmann