|
4875 | 4875 | "The integer value was not expected to validate against the empty enumeration" |
4876 | 4876 | ] |
4877 | 4877 | } |
| 4878 | + }, |
| 4879 | + { |
| 4880 | + "description": "id_empty_string_top_level", |
| 4881 | + "schema": { |
| 4882 | + "$schema": "https://json-schema.org/draft/2019-09/schema", |
| 4883 | + "$id": "", |
| 4884 | + "type": "string" |
| 4885 | + }, |
| 4886 | + "instance": "foo bar", |
| 4887 | + "valid": true, |
| 4888 | + "fast": { |
| 4889 | + "pre": [ |
| 4890 | + [ "AssertionTypeStrict", "/type", "#/type", "" ] |
| 4891 | + ], |
| 4892 | + "post": [ |
| 4893 | + [ true, "AssertionTypeStrict", "/type", "#/type", "" ] |
| 4894 | + ], |
| 4895 | + "descriptions": [ |
| 4896 | + "The value was expected to be of type string" |
| 4897 | + ] |
| 4898 | + }, |
| 4899 | + "exhaustive": { |
| 4900 | + "pre": [ |
| 4901 | + [ "AssertionTypeStrict", "/type", "#/type", "" ] |
| 4902 | + ], |
| 4903 | + "post": [ |
| 4904 | + [ true, "AssertionTypeStrict", "/type", "#/type", "" ] |
| 4905 | + ], |
| 4906 | + "descriptions": [ |
| 4907 | + "The value was expected to be of type string" |
| 4908 | + ] |
| 4909 | + } |
| 4910 | + }, |
| 4911 | + { |
| 4912 | + "description": "id_hash_top_level", |
| 4913 | + "schema": { |
| 4914 | + "$schema": "https://json-schema.org/draft/2019-09/schema", |
| 4915 | + "$id": "#", |
| 4916 | + "type": "string" |
| 4917 | + }, |
| 4918 | + "instance": "foo bar", |
| 4919 | + "valid": true, |
| 4920 | + "fast": { |
| 4921 | + "pre": [ |
| 4922 | + [ "AssertionTypeStrict", "/type", "#/type", "" ] |
| 4923 | + ], |
| 4924 | + "post": [ |
| 4925 | + [ true, "AssertionTypeStrict", "/type", "#/type", "" ] |
| 4926 | + ], |
| 4927 | + "descriptions": [ |
| 4928 | + "The value was expected to be of type string" |
| 4929 | + ] |
| 4930 | + }, |
| 4931 | + "exhaustive": { |
| 4932 | + "pre": [ |
| 4933 | + [ "AssertionTypeStrict", "/type", "#/type", "" ] |
| 4934 | + ], |
| 4935 | + "post": [ |
| 4936 | + [ true, "AssertionTypeStrict", "/type", "#/type", "" ] |
| 4937 | + ], |
| 4938 | + "descriptions": [ |
| 4939 | + "The value was expected to be of type string" |
| 4940 | + ] |
| 4941 | + } |
| 4942 | + }, |
| 4943 | + { |
| 4944 | + "description": "id_empty_string_nested", |
| 4945 | + "schema": { |
| 4946 | + "$schema": "https://json-schema.org/draft/2019-09/schema", |
| 4947 | + "$id": "https://www.example.com", |
| 4948 | + "$ref": "#/$defs/test", |
| 4949 | + "$defs": { "test": { "$id": "", "type": "string" } } |
| 4950 | + }, |
| 4951 | + "instance": "foo bar", |
| 4952 | + "valid": true, |
| 4953 | + "fast": { |
| 4954 | + "pre": [ |
| 4955 | + [ "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ] |
| 4956 | + ], |
| 4957 | + "post": [ |
| 4958 | + [ true, "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ] |
| 4959 | + ], |
| 4960 | + "descriptions": [ |
| 4961 | + "The value was expected to be of type string" |
| 4962 | + ] |
| 4963 | + }, |
| 4964 | + "exhaustive": { |
| 4965 | + "pre": [ |
| 4966 | + [ "ControlJump", "/$ref", "https://www.example.com#/$ref", "" ], |
| 4967 | + [ "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ] |
| 4968 | + ], |
| 4969 | + "post": [ |
| 4970 | + [ true, "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ], |
| 4971 | + [ true, "ControlJump", "/$ref", "https://www.example.com#/$ref", "" ] |
| 4972 | + ], |
| 4973 | + "descriptions": [ |
| 4974 | + "The value was expected to be of type string", |
| 4975 | + "The string value was expected to validate against the referenced schema" |
| 4976 | + ] |
| 4977 | + } |
| 4978 | + }, |
| 4979 | + { |
| 4980 | + "description": "id_hash_nested", |
| 4981 | + "schema": { |
| 4982 | + "$schema": "https://json-schema.org/draft/2019-09/schema", |
| 4983 | + "$id": "https://www.example.com", |
| 4984 | + "$ref": "#/$defs/test", |
| 4985 | + "$defs": { "test": { "$id": "#", "type": "string" } } |
| 4986 | + }, |
| 4987 | + "instance": "foo bar", |
| 4988 | + "valid": true, |
| 4989 | + "fast": { |
| 4990 | + "pre": [ |
| 4991 | + [ "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ] |
| 4992 | + ], |
| 4993 | + "post": [ |
| 4994 | + [ true, "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ] |
| 4995 | + ], |
| 4996 | + "descriptions": [ |
| 4997 | + "The value was expected to be of type string" |
| 4998 | + ] |
| 4999 | + }, |
| 5000 | + "exhaustive": { |
| 5001 | + "pre": [ |
| 5002 | + [ "ControlJump", "/$ref", "https://www.example.com#/$ref", "" ], |
| 5003 | + [ "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ] |
| 5004 | + ], |
| 5005 | + "post": [ |
| 5006 | + [ true, "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ], |
| 5007 | + [ true, "ControlJump", "/$ref", "https://www.example.com#/$ref", "" ] |
| 5008 | + ], |
| 5009 | + "descriptions": [ |
| 5010 | + "The value was expected to be of type string", |
| 5011 | + "The string value was expected to validate against the referenced schema" |
| 5012 | + ] |
| 5013 | + } |
4878 | 5014 | } |
4879 | 5015 | ] |
0 commit comments