adopted-ember-addons / ember-validators

A collection of EmberJS validators
Other
24 stars 40 forks source link

number: docfix for positive option #64

Closed bgentry closed 6 years ago

bgentry commented 6 years ago

The number validator with a positive option only validates that the number is not less than 0. This PR changes the docs to reflect that 0 is allowed.

This simple doc fix made more sense to me than changing the underlying behavior to match the docs, especially since there is a test explicitly verifying this behavior.

offirgolan commented 6 years ago

Thanks @bgentry!