mountebank icon indicating copy to clipboard operation
mountebank copied to clipboard

Support ignoring certain keys in predicateGenerators

Open bbyars opened this issue 8 years ago • 3 comments

Let's say you had a proxy listening on port 3000 configured like this:

{
  "to": "http://origin-server.com",
  "predicateGenerators": [{
    "matches": { "query": true },
    "ignore": { "query": "startDate" }
  ]}
}

Then we get a request:

http://localhost:3000/path?limit=100&enhanced=true&startDate=2017-09-07&endDate=2017-10-11

The saved predicate should not have the startDate key.

Requested by Sabari Karthik.

bbyars avatar Oct 16 '17 17:10 bbyars

Hi, can you assign me to the issue?

gePower avatar Jan 13 '22 05:01 gePower

Done!

bbyars avatar Jan 14 '22 16:01 bbyars

thanks ! it's already done ! https://github.com/bbyars/mountebank/pull/661

gePower avatar Jan 15 '22 02:01 gePower