[ { "description": "validation of regular expressions", "schema": { "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "regex" }, "skip": { "v3-roundtrip": "generation only supported in version https://json-schema.org/draft/2020-12/schema" }, "tests": [ { "description": "all string formats ignore integers", "data": 12, "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "all string formats ignore floats", "data": 13.7, "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "all string formats ignore objects", "data": {}, "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "all string formats ignore arrays", "data": [], "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "all string formats ignore booleans", "data": false, "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "all string formats ignore nulls", "data": null, "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "a valid regular expression", "data": "([abc])+\\s+$", "valid": true, "skip": { "v3-roundtrip": "could not extract schema" } }, { "description": "a regular expression with unclosed parens is invalid", "data": "^(abc]", "valid": false, "skip": { "v3-roundtrip": "could not extract schema" } } ] } ]