cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/external/tests/draft7/optional/format/regex.json (about) 1 [ 2 { 3 "description": "validation of regular expressions", 4 "schema": { 5 "format": "regex" 6 }, 7 "tests": [ 8 { 9 "description": "all string formats ignore integers", 10 "data": 12, 11 "valid": true 12 }, 13 { 14 "description": "all string formats ignore floats", 15 "data": 13.7, 16 "valid": true 17 }, 18 { 19 "description": "all string formats ignore objects", 20 "data": {}, 21 "valid": true 22 }, 23 { 24 "description": "all string formats ignore arrays", 25 "data": [], 26 "valid": true 27 }, 28 { 29 "description": "all string formats ignore booleans", 30 "data": false, 31 "valid": true 32 }, 33 { 34 "description": "all string formats ignore nulls", 35 "data": null, 36 "valid": true 37 }, 38 { 39 "description": "a valid regular expression", 40 "data": "([abc])+\\s+$", 41 "valid": true 42 }, 43 { 44 "description": "a regular expression with unclosed parens is invalid", 45 "data": "^(abc]", 46 "valid": false 47 } 48 ] 49 } 50 ]