cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/external/tests/draft2020-12/format.json (about)

     1  [
     2  	{
     3  		"description": "email format",
     4  		"schema": {
     5  			"$schema": "https://json-schema.org/draft/2020-12/schema",
     6  			"format": "email"
     7  		},
     8  		"tests": [
     9  			{
    10  				"description": "all string formats ignore integers",
    11  				"data": 12,
    12  				"valid": true
    13  			},
    14  			{
    15  				"description": "all string formats ignore floats",
    16  				"data": 13.7,
    17  				"valid": true
    18  			},
    19  			{
    20  				"description": "all string formats ignore objects",
    21  				"data": {},
    22  				"valid": true
    23  			},
    24  			{
    25  				"description": "all string formats ignore arrays",
    26  				"data": [],
    27  				"valid": true
    28  			},
    29  			{
    30  				"description": "all string formats ignore booleans",
    31  				"data": false,
    32  				"valid": true
    33  			},
    34  			{
    35  				"description": "all string formats ignore nulls",
    36  				"data": null,
    37  				"valid": true
    38  			},
    39  			{
    40  				"description": "invalid email string is only an annotation by default",
    41  				"data": "2962",
    42  				"valid": true
    43  			}
    44  		]
    45  	},
    46  	{
    47  		"description": "idn-email format",
    48  		"schema": {
    49  			"$schema": "https://json-schema.org/draft/2020-12/schema",
    50  			"format": "idn-email"
    51  		},
    52  		"tests": [
    53  			{
    54  				"description": "all string formats ignore integers",
    55  				"data": 12,
    56  				"valid": true
    57  			},
    58  			{
    59  				"description": "all string formats ignore floats",
    60  				"data": 13.7,
    61  				"valid": true
    62  			},
    63  			{
    64  				"description": "all string formats ignore objects",
    65  				"data": {},
    66  				"valid": true
    67  			},
    68  			{
    69  				"description": "all string formats ignore arrays",
    70  				"data": [],
    71  				"valid": true
    72  			},
    73  			{
    74  				"description": "all string formats ignore booleans",
    75  				"data": false,
    76  				"valid": true
    77  			},
    78  			{
    79  				"description": "all string formats ignore nulls",
    80  				"data": null,
    81  				"valid": true
    82  			},
    83  			{
    84  				"description": "invalid idn-email string is only an annotation by default",
    85  				"data": "2962",
    86  				"valid": true
    87  			}
    88  		]
    89  	},
    90  	{
    91  		"description": "regex format",
    92  		"schema": {
    93  			"$schema": "https://json-schema.org/draft/2020-12/schema",
    94  			"format": "regex"
    95  		},
    96  		"tests": [
    97  			{
    98  				"description": "all string formats ignore integers",
    99  				"data": 12,
   100  				"valid": true
   101  			},
   102  			{
   103  				"description": "all string formats ignore floats",
   104  				"data": 13.7,
   105  				"valid": true
   106  			},
   107  			{
   108  				"description": "all string formats ignore objects",
   109  				"data": {},
   110  				"valid": true
   111  			},
   112  			{
   113  				"description": "all string formats ignore arrays",
   114  				"data": [],
   115  				"valid": true
   116  			},
   117  			{
   118  				"description": "all string formats ignore booleans",
   119  				"data": false,
   120  				"valid": true
   121  			},
   122  			{
   123  				"description": "all string formats ignore nulls",
   124  				"data": null,
   125  				"valid": true
   126  			},
   127  			{
   128  				"description": "invalid regex string is only an annotation by default",
   129  				"data": "^(abc]",
   130  				"valid": true,
   131  				"skip": {
   132  					"v2": "6 errors in empty disjunction:\nconflicting values \"^(abc]\" and [...] (mismatched types string and list):\n    generated.cue:5:1\n    generated.cue:5:39\n    instance.json:1:1\nconflicting values \"^(abc]\" and bool (mismatched types string and bool):\n    generated.cue:5:1\n    generated.cue:5:8\n    instance.json:1:1\nconflicting values \"^(abc]\" and null (mismatched types string and null):\n    generated.cue:5:1\n    instance.json:1:1\nconflicting values \"^(abc]\" and number (mismatched types string and number):\n    generated.cue:5:1\n    generated.cue:5:15\n    instance.json:1:1\nconflicting values \"^(abc]\" and {...} (mismatched types string and struct):\n    generated.cue:5:1\n    generated.cue:5:47\n    instance.json:1:1\ninvalid value \"^(abc]\" (does not satisfy regexp.Valid): error in call to regexp.Valid: error parsing regexp: missing closing ): `^(abc]`:\n    generated.cue:1:1\n    instance.json:1:1\n",
   133  					"v3": "6 errors in empty disjunction:\nconflicting values \"^(abc]\" and [...] (mismatched types string and list):\n    generated.cue:5:39\n    instance.json:1:1\nconflicting values \"^(abc]\" and bool (mismatched types string and bool):\n    generated.cue:5:8\n    instance.json:1:1\nconflicting values \"^(abc]\" and null (mismatched types string and null):\n    generated.cue:5:1\n    instance.json:1:1\nconflicting values \"^(abc]\" and number (mismatched types string and number):\n    generated.cue:5:15\n    instance.json:1:1\nconflicting values \"^(abc]\" and {...} (mismatched types string and struct):\n    generated.cue:5:47\n    instance.json:1:1\ninvalid value \"^(abc]\" (does not satisfy regexp.Valid): error in call to regexp.Valid: error parsing regexp: missing closing ): `^(abc]`:\n    generated.cue:1:1\n    instance.json:1:1\n"
   134  				}
   135  			}
   136  		]
   137  	},
   138  	{
   139  		"description": "ipv4 format",
   140  		"schema": {
   141  			"$schema": "https://json-schema.org/draft/2020-12/schema",
   142  			"format": "ipv4"
   143  		},
   144  		"tests": [
   145  			{
   146  				"description": "all string formats ignore integers",
   147  				"data": 12,
   148  				"valid": true
   149  			},
   150  			{
   151  				"description": "all string formats ignore floats",
   152  				"data": 13.7,
   153  				"valid": true
   154  			},
   155  			{
   156  				"description": "all string formats ignore objects",
   157  				"data": {},
   158  				"valid": true
   159  			},
   160  			{
   161  				"description": "all string formats ignore arrays",
   162  				"data": [],
   163  				"valid": true
   164  			},
   165  			{
   166  				"description": "all string formats ignore booleans",
   167  				"data": false,
   168  				"valid": true
   169  			},
   170  			{
   171  				"description": "all string formats ignore nulls",
   172  				"data": null,
   173  				"valid": true
   174  			},
   175  			{
   176  				"description": "invalid ipv4 string is only an annotation by default",
   177  				"data": "127.0.0.0.1",
   178  				"valid": true
   179  			}
   180  		]
   181  	},
   182  	{
   183  		"description": "ipv6 format",
   184  		"schema": {
   185  			"$schema": "https://json-schema.org/draft/2020-12/schema",
   186  			"format": "ipv6"
   187  		},
   188  		"tests": [
   189  			{
   190  				"description": "all string formats ignore integers",
   191  				"data": 12,
   192  				"valid": true
   193  			},
   194  			{
   195  				"description": "all string formats ignore floats",
   196  				"data": 13.7,
   197  				"valid": true
   198  			},
   199  			{
   200  				"description": "all string formats ignore objects",
   201  				"data": {},
   202  				"valid": true
   203  			},
   204  			{
   205  				"description": "all string formats ignore arrays",
   206  				"data": [],
   207  				"valid": true
   208  			},
   209  			{
   210  				"description": "all string formats ignore booleans",
   211  				"data": false,
   212  				"valid": true
   213  			},
   214  			{
   215  				"description": "all string formats ignore nulls",
   216  				"data": null,
   217  				"valid": true
   218  			},
   219  			{
   220  				"description": "invalid ipv6 string is only an annotation by default",
   221  				"data": "12345::",
   222  				"valid": true
   223  			}
   224  		]
   225  	},
   226  	{
   227  		"description": "idn-hostname format",
   228  		"schema": {
   229  			"$schema": "https://json-schema.org/draft/2020-12/schema",
   230  			"format": "idn-hostname"
   231  		},
   232  		"tests": [
   233  			{
   234  				"description": "all string formats ignore integers",
   235  				"data": 12,
   236  				"valid": true
   237  			},
   238  			{
   239  				"description": "all string formats ignore floats",
   240  				"data": 13.7,
   241  				"valid": true
   242  			},
   243  			{
   244  				"description": "all string formats ignore objects",
   245  				"data": {},
   246  				"valid": true
   247  			},
   248  			{
   249  				"description": "all string formats ignore arrays",
   250  				"data": [],
   251  				"valid": true
   252  			},
   253  			{
   254  				"description": "all string formats ignore booleans",
   255  				"data": false,
   256  				"valid": true
   257  			},
   258  			{
   259  				"description": "all string formats ignore nulls",
   260  				"data": null,
   261  				"valid": true
   262  			},
   263  			{
   264  				"description": "invalid idn-hostname string is only an annotation by default",
   265  				"data": "〮실례.테스트",
   266  				"valid": true
   267  			}
   268  		]
   269  	},
   270  	{
   271  		"description": "hostname format",
   272  		"schema": {
   273  			"$schema": "https://json-schema.org/draft/2020-12/schema",
   274  			"format": "hostname"
   275  		},
   276  		"tests": [
   277  			{
   278  				"description": "all string formats ignore integers",
   279  				"data": 12,
   280  				"valid": true
   281  			},
   282  			{
   283  				"description": "all string formats ignore floats",
   284  				"data": 13.7,
   285  				"valid": true
   286  			},
   287  			{
   288  				"description": "all string formats ignore objects",
   289  				"data": {},
   290  				"valid": true
   291  			},
   292  			{
   293  				"description": "all string formats ignore arrays",
   294  				"data": [],
   295  				"valid": true
   296  			},
   297  			{
   298  				"description": "all string formats ignore booleans",
   299  				"data": false,
   300  				"valid": true
   301  			},
   302  			{
   303  				"description": "all string formats ignore nulls",
   304  				"data": null,
   305  				"valid": true
   306  			},
   307  			{
   308  				"description": "invalid hostname string is only an annotation by default",
   309  				"data": "-a-host-name-that-starts-with--",
   310  				"valid": true
   311  			}
   312  		]
   313  	},
   314  	{
   315  		"description": "date format",
   316  		"schema": {
   317  			"$schema": "https://json-schema.org/draft/2020-12/schema",
   318  			"format": "date"
   319  		},
   320  		"tests": [
   321  			{
   322  				"description": "all string formats ignore integers",
   323  				"data": 12,
   324  				"valid": true
   325  			},
   326  			{
   327  				"description": "all string formats ignore floats",
   328  				"data": 13.7,
   329  				"valid": true
   330  			},
   331  			{
   332  				"description": "all string formats ignore objects",
   333  				"data": {},
   334  				"valid": true
   335  			},
   336  			{
   337  				"description": "all string formats ignore arrays",
   338  				"data": [],
   339  				"valid": true
   340  			},
   341  			{
   342  				"description": "all string formats ignore booleans",
   343  				"data": false,
   344  				"valid": true
   345  			},
   346  			{
   347  				"description": "all string formats ignore nulls",
   348  				"data": null,
   349  				"valid": true
   350  			},
   351  			{
   352  				"description": "invalid date string is only an annotation by default",
   353  				"data": "06/19/1963",
   354  				"valid": true,
   355  				"skip": {
   356  					"v2": "6 errors in empty disjunction:\nconflicting values \"06/19/1963\" and [...] (mismatched types string and list):\n    generated.cue:5:1\n    generated.cue:5:52\n    instance.json:1:1\nconflicting values \"06/19/1963\" and bool (mismatched types string and bool):\n    generated.cue:5:1\n    generated.cue:5:8\n    instance.json:1:1\nconflicting values \"06/19/1963\" and null (mismatched types string and null):\n    generated.cue:5:1\n    instance.json:1:1\nconflicting values \"06/19/1963\" and number (mismatched types string and number):\n    generated.cue:5:1\n    generated.cue:5:15\n    instance.json:1:1\nconflicting values \"06/19/1963\" and {...} (mismatched types string and struct):\n    generated.cue:5:1\n    generated.cue:5:60\n    instance.json:1:1\ninvalid value \"06/19/1963\" (does not satisfy time.Format(\"2006-01-02\")): error in call to time.Format: invalid time \"06/19/1963\":\n    generated.cue:5:24\n    generated.cue:1:1\n    generated.cue:5:36\n    instance.json:1:1\n",
   357  					"v3": "6 errors in empty disjunction:\nconflicting values \"06/19/1963\" and [...] (mismatched types string and list):\n    generated.cue:5:52\n    instance.json:1:1\nconflicting values \"06/19/1963\" and bool (mismatched types string and bool):\n    generated.cue:5:8\n    instance.json:1:1\nconflicting values \"06/19/1963\" and null (mismatched types string and null):\n    generated.cue:5:1\n    instance.json:1:1\nconflicting values \"06/19/1963\" and number (mismatched types string and number):\n    generated.cue:5:15\n    instance.json:1:1\nconflicting values \"06/19/1963\" and {...} (mismatched types string and struct):\n    generated.cue:5:60\n    instance.json:1:1\ninvalid value \"06/19/1963\" (does not satisfy time.Format(\"2006-01-02\")): error in call to time.Format: invalid time \"06/19/1963\":\n    generated.cue:5:24\n    generated.cue:1:1\n    generated.cue:5:36\n    instance.json:1:1\n"
   358  				}
   359  			}
   360  		]
   361  	},
   362  	{
   363  		"description": "date-time format",
   364  		"schema": {
   365  			"$schema": "https://json-schema.org/draft/2020-12/schema",
   366  			"format": "date-time"
   367  		},
   368  		"tests": [
   369  			{
   370  				"description": "all string formats ignore integers",
   371  				"data": 12,
   372  				"valid": true
   373  			},
   374  			{
   375  				"description": "all string formats ignore floats",
   376  				"data": 13.7,
   377  				"valid": true
   378  			},
   379  			{
   380  				"description": "all string formats ignore objects",
   381  				"data": {},
   382  				"valid": true
   383  			},
   384  			{
   385  				"description": "all string formats ignore arrays",
   386  				"data": [],
   387  				"valid": true
   388  			},
   389  			{
   390  				"description": "all string formats ignore booleans",
   391  				"data": false,
   392  				"valid": true
   393  			},
   394  			{
   395  				"description": "all string formats ignore nulls",
   396  				"data": null,
   397  				"valid": true
   398  			},
   399  			{
   400  				"description": "invalid date-time string is only an annotation by default",
   401  				"data": "1990-02-31T15:59:60.123-08:00",
   402  				"valid": true,
   403  				"skip": {
   404  					"v2": "6 errors in empty disjunction:\nconflicting values \"1990-02-31T15:59:60.123-08:00\" and [...] (mismatched types string and list):\n    generated.cue:5:1\n    generated.cue:5:36\n    instance.json:1:1\nconflicting values \"1990-02-31T15:59:60.123-08:00\" and bool (mismatched types string and bool):\n    generated.cue:5:1\n    generated.cue:5:8\n    instance.json:1:1\nconflicting values \"1990-02-31T15:59:60.123-08:00\" and null (mismatched types string and null):\n    generated.cue:5:1\n    instance.json:1:1\nconflicting values \"1990-02-31T15:59:60.123-08:00\" and number (mismatched types string and number):\n    generated.cue:5:1\n    generated.cue:5:15\n    instance.json:1:1\nconflicting values \"1990-02-31T15:59:60.123-08:00\" and {...} (mismatched types string and struct):\n    generated.cue:5:1\n    generated.cue:5:44\n    instance.json:1:1\ninvalid value \"1990-02-31T15:59:60.123-08:00\" (does not satisfy time.Time): error in call to time.Time: invalid time \"1990-02-31T15:59:60.123-08:00\":\n    generated.cue:1:1\n    instance.json:1:1\n",
   405  					"v3": "6 errors in empty disjunction:\nconflicting values \"1990-02-31T15:59:60.123-08:00\" and [...] (mismatched types string and list):\n    generated.cue:5:36\n    instance.json:1:1\nconflicting values \"1990-02-31T15:59:60.123-08:00\" and bool (mismatched types string and bool):\n    generated.cue:5:8\n    instance.json:1:1\nconflicting values \"1990-02-31T15:59:60.123-08:00\" and null (mismatched types string and null):\n    generated.cue:5:1\n    instance.json:1:1\nconflicting values \"1990-02-31T15:59:60.123-08:00\" and number (mismatched types string and number):\n    generated.cue:5:15\n    instance.json:1:1\nconflicting values \"1990-02-31T15:59:60.123-08:00\" and {...} (mismatched types string and struct):\n    generated.cue:5:44\n    instance.json:1:1\ninvalid value \"1990-02-31T15:59:60.123-08:00\" (does not satisfy time.Time): error in call to time.Time: invalid time \"1990-02-31T15:59:60.123-08:00\":\n    generated.cue:1:1\n    instance.json:1:1\n"
   406  				}
   407  			}
   408  		]
   409  	},
   410  	{
   411  		"description": "time format",
   412  		"schema": {
   413  			"$schema": "https://json-schema.org/draft/2020-12/schema",
   414  			"format": "time"
   415  		},
   416  		"tests": [
   417  			{
   418  				"description": "all string formats ignore integers",
   419  				"data": 12,
   420  				"valid": true
   421  			},
   422  			{
   423  				"description": "all string formats ignore floats",
   424  				"data": 13.7,
   425  				"valid": true
   426  			},
   427  			{
   428  				"description": "all string formats ignore objects",
   429  				"data": {},
   430  				"valid": true
   431  			},
   432  			{
   433  				"description": "all string formats ignore arrays",
   434  				"data": [],
   435  				"valid": true
   436  			},
   437  			{
   438  				"description": "all string formats ignore booleans",
   439  				"data": false,
   440  				"valid": true
   441  			},
   442  			{
   443  				"description": "all string formats ignore nulls",
   444  				"data": null,
   445  				"valid": true
   446  			},
   447  			{
   448  				"description": "invalid time string is only an annotation by default",
   449  				"data": "08:30:06 PST",
   450  				"valid": true
   451  			}
   452  		]
   453  	},
   454  	{
   455  		"description": "json-pointer format",
   456  		"schema": {
   457  			"$schema": "https://json-schema.org/draft/2020-12/schema",
   458  			"format": "json-pointer"
   459  		},
   460  		"tests": [
   461  			{
   462  				"description": "all string formats ignore integers",
   463  				"data": 12,
   464  				"valid": true
   465  			},
   466  			{
   467  				"description": "all string formats ignore floats",
   468  				"data": 13.7,
   469  				"valid": true
   470  			},
   471  			{
   472  				"description": "all string formats ignore objects",
   473  				"data": {},
   474  				"valid": true
   475  			},
   476  			{
   477  				"description": "all string formats ignore arrays",
   478  				"data": [],
   479  				"valid": true
   480  			},
   481  			{
   482  				"description": "all string formats ignore booleans",
   483  				"data": false,
   484  				"valid": true
   485  			},
   486  			{
   487  				"description": "all string formats ignore nulls",
   488  				"data": null,
   489  				"valid": true
   490  			},
   491  			{
   492  				"description": "invalid json-pointer string is only an annotation by default",
   493  				"data": "/foo/bar~",
   494  				"valid": true
   495  			}
   496  		]
   497  	},
   498  	{
   499  		"description": "relative-json-pointer format",
   500  		"schema": {
   501  			"$schema": "https://json-schema.org/draft/2020-12/schema",
   502  			"format": "relative-json-pointer"
   503  		},
   504  		"tests": [
   505  			{
   506  				"description": "all string formats ignore integers",
   507  				"data": 12,
   508  				"valid": true
   509  			},
   510  			{
   511  				"description": "all string formats ignore floats",
   512  				"data": 13.7,
   513  				"valid": true
   514  			},
   515  			{
   516  				"description": "all string formats ignore objects",
   517  				"data": {},
   518  				"valid": true
   519  			},
   520  			{
   521  				"description": "all string formats ignore arrays",
   522  				"data": [],
   523  				"valid": true
   524  			},
   525  			{
   526  				"description": "all string formats ignore booleans",
   527  				"data": false,
   528  				"valid": true
   529  			},
   530  			{
   531  				"description": "all string formats ignore nulls",
   532  				"data": null,
   533  				"valid": true
   534  			},
   535  			{
   536  				"description": "invalid relative-json-pointer string is only an annotation by default",
   537  				"data": "/foo/bar",
   538  				"valid": true
   539  			}
   540  		]
   541  	},
   542  	{
   543  		"description": "iri format",
   544  		"schema": {
   545  			"$schema": "https://json-schema.org/draft/2020-12/schema",
   546  			"format": "iri"
   547  		},
   548  		"tests": [
   549  			{
   550  				"description": "all string formats ignore integers",
   551  				"data": 12,
   552  				"valid": true
   553  			},
   554  			{
   555  				"description": "all string formats ignore floats",
   556  				"data": 13.7,
   557  				"valid": true
   558  			},
   559  			{
   560  				"description": "all string formats ignore objects",
   561  				"data": {},
   562  				"valid": true
   563  			},
   564  			{
   565  				"description": "all string formats ignore arrays",
   566  				"data": [],
   567  				"valid": true
   568  			},
   569  			{
   570  				"description": "all string formats ignore booleans",
   571  				"data": false,
   572  				"valid": true
   573  			},
   574  			{
   575  				"description": "all string formats ignore nulls",
   576  				"data": null,
   577  				"valid": true
   578  			},
   579  			{
   580  				"description": "invalid iri string is only an annotation by default",
   581  				"data": "http://2001:0db8:85a3:0000:0000:8a2e:0370:7334",
   582  				"valid": true
   583  			}
   584  		]
   585  	},
   586  	{
   587  		"description": "iri-reference format",
   588  		"schema": {
   589  			"$schema": "https://json-schema.org/draft/2020-12/schema",
   590  			"format": "iri-reference"
   591  		},
   592  		"tests": [
   593  			{
   594  				"description": "all string formats ignore integers",
   595  				"data": 12,
   596  				"valid": true
   597  			},
   598  			{
   599  				"description": "all string formats ignore floats",
   600  				"data": 13.7,
   601  				"valid": true
   602  			},
   603  			{
   604  				"description": "all string formats ignore objects",
   605  				"data": {},
   606  				"valid": true
   607  			},
   608  			{
   609  				"description": "all string formats ignore arrays",
   610  				"data": [],
   611  				"valid": true
   612  			},
   613  			{
   614  				"description": "all string formats ignore booleans",
   615  				"data": false,
   616  				"valid": true
   617  			},
   618  			{
   619  				"description": "all string formats ignore nulls",
   620  				"data": null,
   621  				"valid": true
   622  			},
   623  			{
   624  				"description": "invalid iri-reference string is only an annotation by default",
   625  				"data": "\\\\WINDOWS\\filëßåré",
   626  				"valid": true
   627  			}
   628  		]
   629  	},
   630  	{
   631  		"description": "uri format",
   632  		"schema": {
   633  			"$schema": "https://json-schema.org/draft/2020-12/schema",
   634  			"format": "uri"
   635  		},
   636  		"tests": [
   637  			{
   638  				"description": "all string formats ignore integers",
   639  				"data": 12,
   640  				"valid": true
   641  			},
   642  			{
   643  				"description": "all string formats ignore floats",
   644  				"data": 13.7,
   645  				"valid": true
   646  			},
   647  			{
   648  				"description": "all string formats ignore objects",
   649  				"data": {},
   650  				"valid": true
   651  			},
   652  			{
   653  				"description": "all string formats ignore arrays",
   654  				"data": [],
   655  				"valid": true
   656  			},
   657  			{
   658  				"description": "all string formats ignore booleans",
   659  				"data": false,
   660  				"valid": true
   661  			},
   662  			{
   663  				"description": "all string formats ignore nulls",
   664  				"data": null,
   665  				"valid": true
   666  			},
   667  			{
   668  				"description": "invalid uri string is only an annotation by default",
   669  				"data": "//foo.bar/?baz=qux#quux",
   670  				"valid": true,
   671  				"skip": {
   672  					"v2": "6 errors in empty disjunction:\nconflicting values \"//foo.bar/?baz=qux#quux\" and [...] (mismatched types string and list):\n    generated.cue:5:1\n    generated.cue:5:37\n    instance.json:1:1\nconflicting values \"//foo.bar/?baz=qux#quux\" and bool (mismatched types string and bool):\n    generated.cue:5:1\n    generated.cue:5:8\n    instance.json:1:1\nconflicting values \"//foo.bar/?baz=qux#quux\" and null (mismatched types string and null):\n    generated.cue:5:1\n    instance.json:1:1\nconflicting values \"//foo.bar/?baz=qux#quux\" and number (mismatched types string and number):\n    generated.cue:5:1\n    generated.cue:5:15\n    instance.json:1:1\nconflicting values \"//foo.bar/?baz=qux#quux\" and {...} (mismatched types string and struct):\n    generated.cue:5:1\n    generated.cue:5:45\n    instance.json:1:1\ninvalid value \"//foo.bar/?baz=qux#quux\" (does not satisfy net.AbsURL): error in call to net.AbsURL: URL is not absolute:\n    generated.cue:1:1\n    instance.json:1:1\n",
   673  					"v3": "6 errors in empty disjunction:\nconflicting values \"//foo.bar/?baz=qux#quux\" and [...] (mismatched types string and list):\n    generated.cue:5:37\n    instance.json:1:1\nconflicting values \"//foo.bar/?baz=qux#quux\" and bool (mismatched types string and bool):\n    generated.cue:5:8\n    instance.json:1:1\nconflicting values \"//foo.bar/?baz=qux#quux\" and null (mismatched types string and null):\n    generated.cue:5:1\n    instance.json:1:1\nconflicting values \"//foo.bar/?baz=qux#quux\" and number (mismatched types string and number):\n    generated.cue:5:15\n    instance.json:1:1\nconflicting values \"//foo.bar/?baz=qux#quux\" and {...} (mismatched types string and struct):\n    generated.cue:5:45\n    instance.json:1:1\ninvalid value \"//foo.bar/?baz=qux#quux\" (does not satisfy net.AbsURL): error in call to net.AbsURL: URL is not absolute:\n    generated.cue:1:1\n    instance.json:1:1\n"
   674  				}
   675  			}
   676  		]
   677  	},
   678  	{
   679  		"description": "uri-reference format",
   680  		"schema": {
   681  			"$schema": "https://json-schema.org/draft/2020-12/schema",
   682  			"format": "uri-reference"
   683  		},
   684  		"tests": [
   685  			{
   686  				"description": "all string formats ignore integers",
   687  				"data": 12,
   688  				"valid": true
   689  			},
   690  			{
   691  				"description": "all string formats ignore floats",
   692  				"data": 13.7,
   693  				"valid": true
   694  			},
   695  			{
   696  				"description": "all string formats ignore objects",
   697  				"data": {},
   698  				"valid": true
   699  			},
   700  			{
   701  				"description": "all string formats ignore arrays",
   702  				"data": [],
   703  				"valid": true
   704  			},
   705  			{
   706  				"description": "all string formats ignore booleans",
   707  				"data": false,
   708  				"valid": true
   709  			},
   710  			{
   711  				"description": "all string formats ignore nulls",
   712  				"data": null,
   713  				"valid": true
   714  			},
   715  			{
   716  				"description": "invalid uri-reference string is only an annotation by default",
   717  				"data": "\\\\WINDOWS\\fileshare",
   718  				"valid": true
   719  			}
   720  		]
   721  	},
   722  	{
   723  		"description": "uri-template format",
   724  		"schema": {
   725  			"$schema": "https://json-schema.org/draft/2020-12/schema",
   726  			"format": "uri-template"
   727  		},
   728  		"tests": [
   729  			{
   730  				"description": "all string formats ignore integers",
   731  				"data": 12,
   732  				"valid": true
   733  			},
   734  			{
   735  				"description": "all string formats ignore floats",
   736  				"data": 13.7,
   737  				"valid": true
   738  			},
   739  			{
   740  				"description": "all string formats ignore objects",
   741  				"data": {},
   742  				"valid": true
   743  			},
   744  			{
   745  				"description": "all string formats ignore arrays",
   746  				"data": [],
   747  				"valid": true
   748  			},
   749  			{
   750  				"description": "all string formats ignore booleans",
   751  				"data": false,
   752  				"valid": true
   753  			},
   754  			{
   755  				"description": "all string formats ignore nulls",
   756  				"data": null,
   757  				"valid": true
   758  			},
   759  			{
   760  				"description": "invalid uri-template string is only an annotation by default",
   761  				"data": "http://example.com/dictionary/{term:1}/{term",
   762  				"valid": true
   763  			}
   764  		]
   765  	},
   766  	{
   767  		"description": "uuid format",
   768  		"schema": {
   769  			"$schema": "https://json-schema.org/draft/2020-12/schema",
   770  			"format": "uuid"
   771  		},
   772  		"tests": [
   773  			{
   774  				"description": "all string formats ignore integers",
   775  				"data": 12,
   776  				"valid": true
   777  			},
   778  			{
   779  				"description": "all string formats ignore floats",
   780  				"data": 13.7,
   781  				"valid": true
   782  			},
   783  			{
   784  				"description": "all string formats ignore objects",
   785  				"data": {},
   786  				"valid": true
   787  			},
   788  			{
   789  				"description": "all string formats ignore arrays",
   790  				"data": [],
   791  				"valid": true
   792  			},
   793  			{
   794  				"description": "all string formats ignore booleans",
   795  				"data": false,
   796  				"valid": true
   797  			},
   798  			{
   799  				"description": "all string formats ignore nulls",
   800  				"data": null,
   801  				"valid": true
   802  			},
   803  			{
   804  				"description": "invalid uuid string is only an annotation by default",
   805  				"data": "2eb8aa08-aa98-11ea-b4aa-73b441d1638",
   806  				"valid": true
   807  			}
   808  		]
   809  	},
   810  	{
   811  		"description": "duration format",
   812  		"schema": {
   813  			"$schema": "https://json-schema.org/draft/2020-12/schema",
   814  			"format": "duration"
   815  		},
   816  		"tests": [
   817  			{
   818  				"description": "all string formats ignore integers",
   819  				"data": 12,
   820  				"valid": true
   821  			},
   822  			{
   823  				"description": "all string formats ignore floats",
   824  				"data": 13.7,
   825  				"valid": true
   826  			},
   827  			{
   828  				"description": "all string formats ignore objects",
   829  				"data": {},
   830  				"valid": true
   831  			},
   832  			{
   833  				"description": "all string formats ignore arrays",
   834  				"data": [],
   835  				"valid": true
   836  			},
   837  			{
   838  				"description": "all string formats ignore booleans",
   839  				"data": false,
   840  				"valid": true
   841  			},
   842  			{
   843  				"description": "all string formats ignore nulls",
   844  				"data": null,
   845  				"valid": true
   846  			},
   847  			{
   848  				"description": "invalid duration string is only an annotation by default",
   849  				"data": "PT1D",
   850  				"valid": true
   851  			}
   852  		]
   853  	}
   854  ]