schematic-ipsum icon indicating copy to clipboard operation
schematic-ipsum copied to clipboard

Ability to define accepted range for integer and number types

Open mcnemesis opened this issue 7 years ago • 0 comments

That's basically it - the need to specify ranges (could even be partially bound or bound on both ends). This would let one use this to generate for example percentages by doing something like...

{ "type": "number", "range": [0,100] } { "type": "integer", "range": [0,10] } { "type": "number", "range": [0,1] } { "type": "number", "max": 1000 } { "type": "number", "min": 10}

mcnemesis avatar May 21 '17 09:05 mcnemesis