cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/external/tests/draft4/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 (explicit false exclusivity)", 32 "schema": { 33 "minimum": 1.1, 34 "exclusiveMinimum": false 35 }, 36 "tests": [ 37 { 38 "description": "above the minimum is valid", 39 "data": 2.6, 40 "valid": true 41 }, 42 { 43 "description": "boundary point is valid", 44 "data": 1.1, 45 "valid": true, 46 "skip": { 47 "v2": "6 errors in empty disjunction:\nconflicting values 1.1 and [...] (mismatched types float and list):\n generated.cue:2:1\n generated.cue:2:31\n instance.json:1:1\nconflicting values 1.1 and bool (mismatched types float and bool):\n generated.cue:2:1\n generated.cue:2:8\n instance.json:1:1\nconflicting values 1.1 and null (mismatched types float and null):\n generated.cue:2:1\n instance.json:1:1\nconflicting values 1.1 and string (mismatched types float and string):\n generated.cue:2:1\n generated.cue:2:22\n instance.json:1:1\nconflicting values 1.1 and {...} (mismatched types float and struct):\n generated.cue:2:1\n generated.cue:2:39\n instance.json:1:1\ninvalid value 1.1 (out of bound \u003e1.1):\n generated.cue:2:15\n instance.json:1:1\n", 48 "v3": "6 errors in empty disjunction:\nconflicting values 1.1 and [...] (mismatched types float and list):\n generated.cue:2:31\n instance.json:1:1\nconflicting values 1.1 and bool (mismatched types float and bool):\n generated.cue:2:8\n instance.json:1:1\nconflicting values 1.1 and null (mismatched types float and null):\n generated.cue:2:1\n instance.json:1:1\nconflicting values 1.1 and string (mismatched types float and string):\n generated.cue:2:22\n instance.json:1:1\nconflicting values 1.1 and {...} (mismatched types float and struct):\n generated.cue:2:39\n instance.json:1:1\ninvalid value 1.1 (out of bound \u003e1.1):\n generated.cue:2:15\n instance.json:1:1\n" 49 } 50 }, 51 { 52 "description": "below the minimum is invalid", 53 "data": 0.6, 54 "valid": false 55 }, 56 { 57 "description": "ignores non-numbers", 58 "data": "x", 59 "valid": true 60 } 61 ] 62 }, 63 { 64 "description": "exclusiveMinimum validation", 65 "schema": { 66 "minimum": 1.1, 67 "exclusiveMinimum": true 68 }, 69 "tests": [ 70 { 71 "description": "above the minimum is still valid", 72 "data": 1.2, 73 "valid": true 74 }, 75 { 76 "description": "boundary point is invalid", 77 "data": 1.1, 78 "valid": false 79 } 80 ] 81 }, 82 { 83 "description": "minimum validation with signed integer", 84 "schema": { 85 "minimum": -2 86 }, 87 "tests": [ 88 { 89 "description": "negative above the minimum is valid", 90 "data": -1, 91 "valid": true 92 }, 93 { 94 "description": "positive above the minimum is valid", 95 "data": 0, 96 "valid": true 97 }, 98 { 99 "description": "boundary point is valid", 100 "data": -2, 101 "valid": true 102 }, 103 { 104 "description": "boundary point with float is valid", 105 "data": -2.0, 106 "valid": true 107 }, 108 { 109 "description": "float below the minimum is invalid", 110 "data": -2.0001, 111 "valid": false 112 }, 113 { 114 "description": "int below the minimum is invalid", 115 "data": -3, 116 "valid": false 117 }, 118 { 119 "description": "ignores non-numbers", 120 "data": "x", 121 "valid": true 122 } 123 ] 124 } 125 ]