cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/external/tests/draft6/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": "ipv4 format",
    42  		"schema": {
    43  			"format": "ipv4"
    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": "ipv6 format",
    80  		"schema": {
    81  			"format": "ipv6"
    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": "hostname format",
   118  		"schema": {
   119  			"format": "hostname"
   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": "date-time format",
   156  		"schema": {
   157  			"format": "date-time"
   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": "json-pointer format",
   194  		"schema": {
   195  			"format": "json-pointer"
   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": "uri format",
   232  		"schema": {
   233  			"format": "uri"
   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": "uri-reference format",
   270  		"schema": {
   271  			"format": "uri-reference"
   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": "uri-template format",
   308  		"schema": {
   309  			"format": "uri-template"
   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  ]