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

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