github.com/kaptinlin/jsonschema@v0.4.6/testdata/JSON-Schema-Test-Suite/tests/draft3/format.json (about)

     1  [
     2      {
     3          "description": "email format",
     4          "schema": { "format": "email" },
     5          "tests": [
     6              {
     7                  "description": "all string formats ignore integers",
     8                  "data": 12,
     9                  "valid": true
    10              },
    11              {
    12                  "description": "all string formats ignore floats",
    13                  "data": 13.7,
    14                  "valid": true
    15              },
    16              {
    17                  "description": "all string formats ignore objects",
    18                  "data": {},
    19                  "valid": true
    20              },
    21              {
    22                  "description": "all string formats ignore arrays",
    23                  "data": [],
    24                  "valid": true
    25              },
    26              {
    27                  "description": "all string formats ignore booleans",
    28                  "data": false,
    29                  "valid": true
    30              },
    31              {
    32                  "description": "all string formats ignore nulls",
    33                  "data": null,
    34                  "valid": true
    35              }
    36          ]
    37      },
    38      {
    39          "description": "ip-address format",
    40          "schema": { "format": "ip-address" },
    41          "tests": [
    42              {
    43                  "description": "all string formats ignore integers",
    44                  "data": 12,
    45                  "valid": true
    46              },
    47              {
    48                  "description": "all string formats ignore floats",
    49                  "data": 13.7,
    50                  "valid": true
    51              },
    52              {
    53                  "description": "all string formats ignore objects",
    54                  "data": {},
    55                  "valid": true
    56              },
    57              {
    58                  "description": "all string formats ignore arrays",
    59                  "data": [],
    60                  "valid": true
    61              },
    62              {
    63                  "description": "all string formats ignore booleans",
    64                  "data": false,
    65                  "valid": true
    66              },
    67              {
    68                  "description": "all string formats ignore nulls",
    69                  "data": null,
    70                  "valid": true
    71              }
    72          ]
    73      },
    74      {
    75          "description": "ipv6 format",
    76          "schema": { "format": "ipv6" },
    77          "tests": [
    78              {
    79                  "description": "all string formats ignore integers",
    80                  "data": 12,
    81                  "valid": true
    82              },
    83              {
    84                  "description": "all string formats ignore floats",
    85                  "data": 13.7,
    86                  "valid": true
    87              },
    88              {
    89                  "description": "all string formats ignore objects",
    90                  "data": {},
    91                  "valid": true
    92              },
    93              {
    94                  "description": "all string formats ignore arrays",
    95                  "data": [],
    96                  "valid": true
    97              },
    98              {
    99                  "description": "all string formats ignore booleans",
   100                  "data": false,
   101                  "valid": true
   102              },
   103              {
   104                  "description": "all string formats ignore nulls",
   105                  "data": null,
   106                  "valid": true
   107              }
   108          ]
   109      },
   110      {
   111          "description": "host-name format",
   112          "schema": { "format": "host-name" },
   113          "tests": [
   114              {
   115                  "description": "all string formats ignore integers",
   116                  "data": 12,
   117                  "valid": true
   118              },
   119              {
   120                  "description": "all string formats ignore floats",
   121                  "data": 13.7,
   122                  "valid": true
   123              },
   124              {
   125                  "description": "all string formats ignore objects",
   126                  "data": {},
   127                  "valid": true
   128              },
   129              {
   130                  "description": "all string formats ignore arrays",
   131                  "data": [],
   132                  "valid": true
   133              },
   134              {
   135                  "description": "all string formats ignore booleans",
   136                  "data": false,
   137                  "valid": true
   138              },
   139              {
   140                  "description": "all string formats ignore nulls",
   141                  "data": null,
   142                  "valid": true
   143              }
   144          ]
   145      },
   146      {
   147          "description": "date-time format",
   148          "schema": { "format": "date-time" },
   149          "tests": [
   150              {
   151                  "description": "all string formats ignore integers",
   152                  "data": 12,
   153                  "valid": true
   154              },
   155              {
   156                  "description": "all string formats ignore floats",
   157                  "data": 13.7,
   158                  "valid": true
   159              },
   160              {
   161                  "description": "all string formats ignore objects",
   162                  "data": {},
   163                  "valid": true
   164              },
   165              {
   166                  "description": "all string formats ignore arrays",
   167                  "data": [],
   168                  "valid": true
   169              },
   170              {
   171                  "description": "all string formats ignore booleans",
   172                  "data": false,
   173                  "valid": true
   174              },
   175              {
   176                  "description": "all string formats ignore nulls",
   177                  "data": null,
   178                  "valid": true
   179              }
   180          ]
   181      },
   182      {
   183          "description": "regex format",
   184          "schema": { "format": "regex" },
   185          "tests": [
   186              {
   187                  "description": "all string formats ignore integers",
   188                  "data": 12,
   189                  "valid": true
   190              },
   191              {
   192                  "description": "all string formats ignore floats",
   193                  "data": 13.7,
   194                  "valid": true
   195              },
   196              {
   197                  "description": "all string formats ignore objects",
   198                  "data": {},
   199                  "valid": true
   200              },
   201              {
   202                  "description": "all string formats ignore arrays",
   203                  "data": [],
   204                  "valid": true
   205              },
   206              {
   207                  "description": "all string formats ignore booleans",
   208                  "data": false,
   209                  "valid": true
   210              },
   211              {
   212                  "description": "all string formats ignore nulls",
   213                  "data": null,
   214                  "valid": true
   215              }
   216          ]
   217      },
   218      {
   219          "description": "date format",
   220          "schema": { "format": "date" },
   221          "tests": [
   222              {
   223                  "description": "all string formats ignore integers",
   224                  "data": 12,
   225                  "valid": true
   226              },
   227              {
   228                  "description": "all string formats ignore floats",
   229                  "data": 13.7,
   230                  "valid": true
   231              },
   232              {
   233                  "description": "all string formats ignore objects",
   234                  "data": {},
   235                  "valid": true
   236              },
   237              {
   238                  "description": "all string formats ignore arrays",
   239                  "data": [],
   240                  "valid": true
   241              },
   242              {
   243                  "description": "all string formats ignore booleans",
   244                  "data": false,
   245                  "valid": true
   246              },
   247              {
   248                  "description": "all string formats ignore nulls",
   249                  "data": null,
   250                  "valid": true
   251              }
   252          ]
   253      },
   254      {
   255          "description": "time format",
   256          "schema": { "format": "time" },
   257          "tests": [
   258              {
   259                  "description": "all string formats ignore integers",
   260                  "data": 12,
   261                  "valid": true
   262              },
   263              {
   264                  "description": "all string formats ignore floats",
   265                  "data": 13.7,
   266                  "valid": true
   267              },
   268              {
   269                  "description": "all string formats ignore objects",
   270                  "data": {},
   271                  "valid": true
   272              },
   273              {
   274                  "description": "all string formats ignore arrays",
   275                  "data": [],
   276                  "valid": true
   277              },
   278              {
   279                  "description": "all string formats ignore booleans",
   280                  "data": false,
   281                  "valid": true
   282              },
   283              {
   284                  "description": "all string formats ignore nulls",
   285                  "data": null,
   286                  "valid": true
   287              }
   288          ]
   289      },
   290      {
   291          "description": "color format",
   292          "schema": { "format": "color" },
   293          "tests": [
   294              {
   295                  "description": "all string formats ignore integers",
   296                  "data": 12,
   297                  "valid": true
   298              },
   299              {
   300                  "description": "all string formats ignore floats",
   301                  "data": 13.7,
   302                  "valid": true
   303              },
   304              {
   305                  "description": "all string formats ignore objects",
   306                  "data": {},
   307                  "valid": true
   308              },
   309              {
   310                  "description": "all string formats ignore arrays",
   311                  "data": [],
   312                  "valid": true
   313              },
   314              {
   315                  "description": "all string formats ignore booleans",
   316                  "data": false,
   317                  "valid": true
   318              },
   319              {
   320                  "description": "all string formats ignore nulls",
   321                  "data": null,
   322                  "valid": true
   323              }
   324          ]
   325      },
   326      {
   327          "description": "uri format",
   328          "schema": { "format": "uri" },
   329          "tests": [
   330              {
   331                  "description": "all string formats ignore integers",
   332                  "data": 12,
   333                  "valid": true
   334              },
   335              {
   336                  "description": "all string formats ignore floats",
   337                  "data": 13.7,
   338                  "valid": true
   339              },
   340              {
   341                  "description": "all string formats ignore objects",
   342                  "data": {},
   343                  "valid": true
   344              },
   345              {
   346                  "description": "all string formats ignore arrays",
   347                  "data": [],
   348                  "valid": true
   349              },
   350              {
   351                  "description": "all string formats ignore booleans",
   352                  "data": false,
   353                  "valid": true
   354              },
   355              {
   356                  "description": "all string formats ignore nulls",
   357                  "data": null,
   358                  "valid": true
   359              }
   360          ]
   361      }
   362  ]