kenspirit / joi-to-json

Capable of converting different versions' joi object to json schema
MIT License
40 stars 18 forks source link

`number().positive()` should make use of the `exclusiveMinimum` JSON keyword #47

Closed hobgoblina closed 1 year ago

hobgoblina commented 1 year ago

Hi, it'd be great if Joi.number().positive() resulted in:

{
  "type": "number",
  "exclusiveMinimum": 0.0
}