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

     1  [
     2  	{
     3  		"description": "email format",
     4  		"schema": {
     5  			"$schema": "https://json-schema.org/draft/2019-09/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  	},
    41  	{
    42  		"description": "idn-email format",
    43  		"schema": {
    44  			"$schema": "https://json-schema.org/draft/2019-09/schema",
    45  			"format": "idn-email"
    46  		},
    47  		"tests": [
    48  			{
    49  				"description": "all string formats ignore integers",
    50  				"data": 12,
    51  				"valid": true
    52  			},
    53  			{
    54  				"description": "all string formats ignore floats",
    55  				"data": 13.7,
    56  				"valid": true
    57  			},
    58  			{
    59  				"description": "all string formats ignore objects",
    60  				"data": {},
    61  				"valid": true
    62  			},
    63  			{
    64  				"description": "all string formats ignore arrays",
    65  				"data": [],
    66  				"valid": true
    67  			},
    68  			{
    69  				"description": "all string formats ignore booleans",
    70  				"data": false,
    71  				"valid": true
    72  			},
    73  			{
    74  				"description": "all string formats ignore nulls",
    75  				"data": null,
    76  				"valid": true
    77  			}
    78  		]
    79  	},
    80  	{
    81  		"description": "regex format",
    82  		"schema": {
    83  			"$schema": "https://json-schema.org/draft/2019-09/schema",
    84  			"format": "regex"
    85  		},
    86  		"tests": [
    87  			{
    88  				"description": "all string formats ignore integers",
    89  				"data": 12,
    90  				"valid": true
    91  			},
    92  			{
    93  				"description": "all string formats ignore floats",
    94  				"data": 13.7,
    95  				"valid": true
    96  			},
    97  			{
    98  				"description": "all string formats ignore objects",
    99  				"data": {},
   100  				"valid": true
   101  			},
   102  			{
   103  				"description": "all string formats ignore arrays",
   104  				"data": [],
   105  				"valid": true
   106  			},
   107  			{
   108  				"description": "all string formats ignore booleans",
   109  				"data": false,
   110  				"valid": true
   111  			},
   112  			{
   113  				"description": "all string formats ignore nulls",
   114  				"data": null,
   115  				"valid": true
   116  			}
   117  		]
   118  	},
   119  	{
   120  		"description": "ipv4 format",
   121  		"schema": {
   122  			"$schema": "https://json-schema.org/draft/2019-09/schema",
   123  			"format": "ipv4"
   124  		},
   125  		"tests": [
   126  			{
   127  				"description": "all string formats ignore integers",
   128  				"data": 12,
   129  				"valid": true
   130  			},
   131  			{
   132  				"description": "all string formats ignore floats",
   133  				"data": 13.7,
   134  				"valid": true
   135  			},
   136  			{
   137  				"description": "all string formats ignore objects",
   138  				"data": {},
   139  				"valid": true
   140  			},
   141  			{
   142  				"description": "all string formats ignore arrays",
   143  				"data": [],
   144  				"valid": true
   145  			},
   146  			{
   147  				"description": "all string formats ignore booleans",
   148  				"data": false,
   149  				"valid": true
   150  			},
   151  			{
   152  				"description": "all string formats ignore nulls",
   153  				"data": null,
   154  				"valid": true
   155  			}
   156  		]
   157  	},
   158  	{
   159  		"description": "ipv6 format",
   160  		"schema": {
   161  			"$schema": "https://json-schema.org/draft/2019-09/schema",
   162  			"format": "ipv6"
   163  		},
   164  		"tests": [
   165  			{
   166  				"description": "all string formats ignore integers",
   167  				"data": 12,
   168  				"valid": true
   169  			},
   170  			{
   171  				"description": "all string formats ignore floats",
   172  				"data": 13.7,
   173  				"valid": true
   174  			},
   175  			{
   176  				"description": "all string formats ignore objects",
   177  				"data": {},
   178  				"valid": true
   179  			},
   180  			{
   181  				"description": "all string formats ignore arrays",
   182  				"data": [],
   183  				"valid": true
   184  			},
   185  			{
   186  				"description": "all string formats ignore booleans",
   187  				"data": false,
   188  				"valid": true
   189  			},
   190  			{
   191  				"description": "all string formats ignore nulls",
   192  				"data": null,
   193  				"valid": true
   194  			}
   195  		]
   196  	},
   197  	{
   198  		"description": "idn-hostname format",
   199  		"schema": {
   200  			"$schema": "https://json-schema.org/draft/2019-09/schema",
   201  			"format": "idn-hostname"
   202  		},
   203  		"tests": [
   204  			{
   205  				"description": "all string formats ignore integers",
   206  				"data": 12,
   207  				"valid": true
   208  			},
   209  			{
   210  				"description": "all string formats ignore floats",
   211  				"data": 13.7,
   212  				"valid": true
   213  			},
   214  			{
   215  				"description": "all string formats ignore objects",
   216  				"data": {},
   217  				"valid": true
   218  			},
   219  			{
   220  				"description": "all string formats ignore arrays",
   221  				"data": [],
   222  				"valid": true
   223  			},
   224  			{
   225  				"description": "all string formats ignore booleans",
   226  				"data": false,
   227  				"valid": true
   228  			},
   229  			{
   230  				"description": "all string formats ignore nulls",
   231  				"data": null,
   232  				"valid": true
   233  			}
   234  		]
   235  	},
   236  	{
   237  		"description": "hostname format",
   238  		"schema": {
   239  			"$schema": "https://json-schema.org/draft/2019-09/schema",
   240  			"format": "hostname"
   241  		},
   242  		"tests": [
   243  			{
   244  				"description": "all string formats ignore integers",
   245  				"data": 12,
   246  				"valid": true
   247  			},
   248  			{
   249  				"description": "all string formats ignore floats",
   250  				"data": 13.7,
   251  				"valid": true
   252  			},
   253  			{
   254  				"description": "all string formats ignore objects",
   255  				"data": {},
   256  				"valid": true
   257  			},
   258  			{
   259  				"description": "all string formats ignore arrays",
   260  				"data": [],
   261  				"valid": true
   262  			},
   263  			{
   264  				"description": "all string formats ignore booleans",
   265  				"data": false,
   266  				"valid": true
   267  			},
   268  			{
   269  				"description": "all string formats ignore nulls",
   270  				"data": null,
   271  				"valid": true
   272  			}
   273  		]
   274  	},
   275  	{
   276  		"description": "date format",
   277  		"schema": {
   278  			"$schema": "https://json-schema.org/draft/2019-09/schema",
   279  			"format": "date"
   280  		},
   281  		"tests": [
   282  			{
   283  				"description": "all string formats ignore integers",
   284  				"data": 12,
   285  				"valid": true
   286  			},
   287  			{
   288  				"description": "all string formats ignore floats",
   289  				"data": 13.7,
   290  				"valid": true
   291  			},
   292  			{
   293  				"description": "all string formats ignore objects",
   294  				"data": {},
   295  				"valid": true
   296  			},
   297  			{
   298  				"description": "all string formats ignore arrays",
   299  				"data": [],
   300  				"valid": true
   301  			},
   302  			{
   303  				"description": "all string formats ignore booleans",
   304  				"data": false,
   305  				"valid": true
   306  			},
   307  			{
   308  				"description": "all string formats ignore nulls",
   309  				"data": null,
   310  				"valid": true
   311  			}
   312  		]
   313  	},
   314  	{
   315  		"description": "date-time format",
   316  		"schema": {
   317  			"$schema": "https://json-schema.org/draft/2019-09/schema",
   318  			"format": "date-time"
   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  	},
   353  	{
   354  		"description": "time format",
   355  		"schema": {
   356  			"$schema": "https://json-schema.org/draft/2019-09/schema",
   357  			"format": "time"
   358  		},
   359  		"tests": [
   360  			{
   361  				"description": "all string formats ignore integers",
   362  				"data": 12,
   363  				"valid": true
   364  			},
   365  			{
   366  				"description": "all string formats ignore floats",
   367  				"data": 13.7,
   368  				"valid": true
   369  			},
   370  			{
   371  				"description": "all string formats ignore objects",
   372  				"data": {},
   373  				"valid": true
   374  			},
   375  			{
   376  				"description": "all string formats ignore arrays",
   377  				"data": [],
   378  				"valid": true
   379  			},
   380  			{
   381  				"description": "all string formats ignore booleans",
   382  				"data": false,
   383  				"valid": true
   384  			},
   385  			{
   386  				"description": "all string formats ignore nulls",
   387  				"data": null,
   388  				"valid": true
   389  			}
   390  		]
   391  	},
   392  	{
   393  		"description": "json-pointer format",
   394  		"schema": {
   395  			"$schema": "https://json-schema.org/draft/2019-09/schema",
   396  			"format": "json-pointer"
   397  		},
   398  		"tests": [
   399  			{
   400  				"description": "all string formats ignore integers",
   401  				"data": 12,
   402  				"valid": true
   403  			},
   404  			{
   405  				"description": "all string formats ignore floats",
   406  				"data": 13.7,
   407  				"valid": true
   408  			},
   409  			{
   410  				"description": "all string formats ignore objects",
   411  				"data": {},
   412  				"valid": true
   413  			},
   414  			{
   415  				"description": "all string formats ignore arrays",
   416  				"data": [],
   417  				"valid": true
   418  			},
   419  			{
   420  				"description": "all string formats ignore booleans",
   421  				"data": false,
   422  				"valid": true
   423  			},
   424  			{
   425  				"description": "all string formats ignore nulls",
   426  				"data": null,
   427  				"valid": true
   428  			}
   429  		]
   430  	},
   431  	{
   432  		"description": "relative-json-pointer format",
   433  		"schema": {
   434  			"$schema": "https://json-schema.org/draft/2019-09/schema",
   435  			"format": "relative-json-pointer"
   436  		},
   437  		"tests": [
   438  			{
   439  				"description": "all string formats ignore integers",
   440  				"data": 12,
   441  				"valid": true
   442  			},
   443  			{
   444  				"description": "all string formats ignore floats",
   445  				"data": 13.7,
   446  				"valid": true
   447  			},
   448  			{
   449  				"description": "all string formats ignore objects",
   450  				"data": {},
   451  				"valid": true
   452  			},
   453  			{
   454  				"description": "all string formats ignore arrays",
   455  				"data": [],
   456  				"valid": true
   457  			},
   458  			{
   459  				"description": "all string formats ignore booleans",
   460  				"data": false,
   461  				"valid": true
   462  			},
   463  			{
   464  				"description": "all string formats ignore nulls",
   465  				"data": null,
   466  				"valid": true
   467  			}
   468  		]
   469  	},
   470  	{
   471  		"description": "iri format",
   472  		"schema": {
   473  			"$schema": "https://json-schema.org/draft/2019-09/schema",
   474  			"format": "iri"
   475  		},
   476  		"tests": [
   477  			{
   478  				"description": "all string formats ignore integers",
   479  				"data": 12,
   480  				"valid": true
   481  			},
   482  			{
   483  				"description": "all string formats ignore floats",
   484  				"data": 13.7,
   485  				"valid": true
   486  			},
   487  			{
   488  				"description": "all string formats ignore objects",
   489  				"data": {},
   490  				"valid": true
   491  			},
   492  			{
   493  				"description": "all string formats ignore arrays",
   494  				"data": [],
   495  				"valid": true
   496  			},
   497  			{
   498  				"description": "all string formats ignore booleans",
   499  				"data": false,
   500  				"valid": true
   501  			},
   502  			{
   503  				"description": "all string formats ignore nulls",
   504  				"data": null,
   505  				"valid": true
   506  			}
   507  		]
   508  	},
   509  	{
   510  		"description": "iri-reference format",
   511  		"schema": {
   512  			"$schema": "https://json-schema.org/draft/2019-09/schema",
   513  			"format": "iri-reference"
   514  		},
   515  		"tests": [
   516  			{
   517  				"description": "all string formats ignore integers",
   518  				"data": 12,
   519  				"valid": true
   520  			},
   521  			{
   522  				"description": "all string formats ignore floats",
   523  				"data": 13.7,
   524  				"valid": true
   525  			},
   526  			{
   527  				"description": "all string formats ignore objects",
   528  				"data": {},
   529  				"valid": true
   530  			},
   531  			{
   532  				"description": "all string formats ignore arrays",
   533  				"data": [],
   534  				"valid": true
   535  			},
   536  			{
   537  				"description": "all string formats ignore booleans",
   538  				"data": false,
   539  				"valid": true
   540  			},
   541  			{
   542  				"description": "all string formats ignore nulls",
   543  				"data": null,
   544  				"valid": true
   545  			}
   546  		]
   547  	},
   548  	{
   549  		"description": "uri format",
   550  		"schema": {
   551  			"$schema": "https://json-schema.org/draft/2019-09/schema",
   552  			"format": "uri"
   553  		},
   554  		"tests": [
   555  			{
   556  				"description": "all string formats ignore integers",
   557  				"data": 12,
   558  				"valid": true
   559  			},
   560  			{
   561  				"description": "all string formats ignore floats",
   562  				"data": 13.7,
   563  				"valid": true
   564  			},
   565  			{
   566  				"description": "all string formats ignore objects",
   567  				"data": {},
   568  				"valid": true
   569  			},
   570  			{
   571  				"description": "all string formats ignore arrays",
   572  				"data": [],
   573  				"valid": true
   574  			},
   575  			{
   576  				"description": "all string formats ignore booleans",
   577  				"data": false,
   578  				"valid": true
   579  			},
   580  			{
   581  				"description": "all string formats ignore nulls",
   582  				"data": null,
   583  				"valid": true
   584  			}
   585  		]
   586  	},
   587  	{
   588  		"description": "uri-reference format",
   589  		"schema": {
   590  			"$schema": "https://json-schema.org/draft/2019-09/schema",
   591  			"format": "uri-reference"
   592  		},
   593  		"tests": [
   594  			{
   595  				"description": "all string formats ignore integers",
   596  				"data": 12,
   597  				"valid": true
   598  			},
   599  			{
   600  				"description": "all string formats ignore floats",
   601  				"data": 13.7,
   602  				"valid": true
   603  			},
   604  			{
   605  				"description": "all string formats ignore objects",
   606  				"data": {},
   607  				"valid": true
   608  			},
   609  			{
   610  				"description": "all string formats ignore arrays",
   611  				"data": [],
   612  				"valid": true
   613  			},
   614  			{
   615  				"description": "all string formats ignore booleans",
   616  				"data": false,
   617  				"valid": true
   618  			},
   619  			{
   620  				"description": "all string formats ignore nulls",
   621  				"data": null,
   622  				"valid": true
   623  			}
   624  		]
   625  	},
   626  	{
   627  		"description": "uri-template format",
   628  		"schema": {
   629  			"$schema": "https://json-schema.org/draft/2019-09/schema",
   630  			"format": "uri-template"
   631  		},
   632  		"tests": [
   633  			{
   634  				"description": "all string formats ignore integers",
   635  				"data": 12,
   636  				"valid": true
   637  			},
   638  			{
   639  				"description": "all string formats ignore floats",
   640  				"data": 13.7,
   641  				"valid": true
   642  			},
   643  			{
   644  				"description": "all string formats ignore objects",
   645  				"data": {},
   646  				"valid": true
   647  			},
   648  			{
   649  				"description": "all string formats ignore arrays",
   650  				"data": [],
   651  				"valid": true
   652  			},
   653  			{
   654  				"description": "all string formats ignore booleans",
   655  				"data": false,
   656  				"valid": true
   657  			},
   658  			{
   659  				"description": "all string formats ignore nulls",
   660  				"data": null,
   661  				"valid": true
   662  			}
   663  		]
   664  	},
   665  	{
   666  		"description": "uuid format",
   667  		"schema": {
   668  			"$schema": "https://json-schema.org/draft/2019-09/schema",
   669  			"format": "uuid"
   670  		},
   671  		"tests": [
   672  			{
   673  				"description": "all string formats ignore integers",
   674  				"data": 12,
   675  				"valid": true
   676  			},
   677  			{
   678  				"description": "all string formats ignore floats",
   679  				"data": 13.7,
   680  				"valid": true
   681  			},
   682  			{
   683  				"description": "all string formats ignore objects",
   684  				"data": {},
   685  				"valid": true
   686  			},
   687  			{
   688  				"description": "all string formats ignore arrays",
   689  				"data": [],
   690  				"valid": true
   691  			},
   692  			{
   693  				"description": "all string formats ignore booleans",
   694  				"data": false,
   695  				"valid": true
   696  			},
   697  			{
   698  				"description": "all string formats ignore nulls",
   699  				"data": null,
   700  				"valid": true
   701  			}
   702  		]
   703  	},
   704  	{
   705  		"description": "duration format",
   706  		"schema": {
   707  			"$schema": "https://json-schema.org/draft/2019-09/schema",
   708  			"format": "duration"
   709  		},
   710  		"tests": [
   711  			{
   712  				"description": "all string formats ignore integers",
   713  				"data": 12,
   714  				"valid": true
   715  			},
   716  			{
   717  				"description": "all string formats ignore floats",
   718  				"data": 13.7,
   719  				"valid": true
   720  			},
   721  			{
   722  				"description": "all string formats ignore objects",
   723  				"data": {},
   724  				"valid": true
   725  			},
   726  			{
   727  				"description": "all string formats ignore arrays",
   728  				"data": [],
   729  				"valid": true
   730  			},
   731  			{
   732  				"description": "all string formats ignore booleans",
   733  				"data": false,
   734  				"valid": true
   735  			},
   736  			{
   737  				"description": "all string formats ignore nulls",
   738  				"data": null,
   739  				"valid": true
   740  			}
   741  		]
   742  	}
   743  ]