Reputation: 1623
How to have a JSON schema to validate for odd positive integers? At first glance it seems impossible, but perhaps there's some trick?
Upvotes: 4
Views: 390
Reputation: 725
this schema should work
type: integer not: multipleOf: 2 minimum: 0
Upvotes: 6