4 ms·
To support non-negative integers, all you need is the following {"type": "integer", "minimum": 0} I think the format used in the example was used to demonstra
by michaelmior 5y ago
To support non-negative integers, all you need is the following
{"type": "integer", "minimum": 0}
I think the format used in the example was used to demonstrate bundling, but if what you really want is a non-negative integer, the above is the simplest way to do it.
- relequestual 5y agoThis is correct. If I had used a more complex example, it would have been much harder to follow. This was the simplest. We factor this out for our meta-schema construction due to reuse.