apideck-libraries / portman

Port OpenAPI Specs to Postman Collections, inject test suite and run via Newman 👨🏽‍🚀
http://getportman.com/
Apache License 2.0
622 stars 58 forks source link

minimumNumberFields fuzzing does not reduced value when min in spec is 0 #599

Open d-simmons opened 3 days ago

d-simmons commented 3 days ago

I am trying to fix a test that will not pass because the fuzzing was supposed to reduce the minimum which was 0. I'm not sure if it's not equipped to handle negatives or what the issue is, but the value remains at 0 with the minimumNumberFields enabled in the fuzzing section of the portman-config. All the other fields in fuzzing are working for me.

thim81 commented 3 days ago

Hi @d-simmons

We are reducing the number with 1 https://github.com/apideck-libraries/portman/blob/main/src/application/Fuzzer.ts#L373

Can you share your OpenApi (or the relevant part) and your Portman configuration with the fuzzing settings? So we can try to reproduce it?