JSON schema for odd numbers

Viewed 173

How to have a JSON schema to validate for odd positive integers? At first glance it seems impossible, but perhaps there's some trick?

1 Answers

this schema should work

type: integer
not:
  multipleOf: 2
minimum: 0
Related