repocho / raml-mocker

Node module to create random responses to requests based on RAML rest definition.
MIT License
93 stars 33 forks source link

Bugfix for numbermocker when min/max exactly zero #16

Closed bartvercruysse closed 8 years ago

bartvercruysse commented 8 years ago

Check on minimum and/or maximum failed in the numbermocker when the value was exactly zero. Gap calculation was wrong causing faulty mocking values for your number or integer types. Fixed by adding undefined check on the values