cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/external/tests/draft7/minimum.json (about) 1 [ 2 { 3 "description": "minimum validation", 4 "schema": { 5 "minimum": 1.1 6 }, 7 "tests": [ 8 { 9 "description": "above the minimum is valid", 10 "data": 2.6, 11 "valid": true 12 }, 13 { 14 "description": "boundary point is valid", 15 "data": 1.1, 16 "valid": true 17 }, 18 { 19 "description": "below the minimum is invalid", 20 "data": 0.6, 21 "valid": false 22 }, 23 { 24 "description": "ignores non-numbers", 25 "data": "x", 26 "valid": true 27 } 28 ] 29 }, 30 { 31 "description": "minimum validation with signed integer", 32 "schema": { 33 "minimum": -2 34 }, 35 "tests": [ 36 { 37 "description": "negative above the minimum is valid", 38 "data": -1, 39 "valid": true 40 }, 41 { 42 "description": "positive above the minimum is valid", 43 "data": 0, 44 "valid": true 45 }, 46 { 47 "description": "boundary point is valid", 48 "data": -2, 49 "valid": true 50 }, 51 { 52 "description": "boundary point with float is valid", 53 "data": -2.0, 54 "valid": true 55 }, 56 { 57 "description": "float below the minimum is invalid", 58 "data": -2.0001, 59 "valid": false 60 }, 61 { 62 "description": "int below the minimum is invalid", 63 "data": -3, 64 "valid": false 65 }, 66 { 67 "description": "ignores non-numbers", 68 "data": "x", 69 "valid": true 70 } 71 ] 72 } 73 ]