github.com/kaptinlin/jsonschema@v0.4.6/testdata/JSON-Schema-Test-Suite/tests/draft2020-12/optional/bignum.json (about)

     1  [
     2      {
     3          "description": "integer",
     4          "schema": {
     5              "$schema": "https://json-schema.org/draft/2020-12/schema",
     6              "type": "integer"
     7          },
     8          "tests": [
     9              {
    10                  "description": "a bignum is an integer",
    11                  "data": 12345678910111213141516171819202122232425262728293031,
    12                  "valid": true
    13              },
    14              {
    15                  "description": "a negative bignum is an integer",
    16                  "data": -12345678910111213141516171819202122232425262728293031,
    17                  "valid": true
    18              }
    19          ]
    20      },
    21      {
    22          "description": "number",
    23          "schema": {
    24              "$schema": "https://json-schema.org/draft/2020-12/schema",
    25              "type": "number"
    26          },
    27          "tests": [
    28              {
    29                  "description": "a bignum is a number",
    30                  "data": 98249283749234923498293171823948729348710298301928331,
    31                  "valid": true
    32              },
    33              {
    34                  "description": "a negative bignum is a number",
    35                  "data": -98249283749234923498293171823948729348710298301928331,
    36                  "valid": true
    37              }
    38          ]
    39      },
    40      {
    41          "description": "string",
    42          "schema": {
    43              "$schema": "https://json-schema.org/draft/2020-12/schema",
    44              "type": "string"
    45          },
    46          "tests": [
    47              {
    48                  "description": "a bignum is not a string",
    49                  "data": 98249283749234923498293171823948729348710298301928331,
    50                  "valid": false
    51              }
    52          ]
    53      },
    54      {
    55          "description": "maximum integer comparison",
    56          "schema": {
    57              "$schema": "https://json-schema.org/draft/2020-12/schema",
    58              "maximum": 18446744073709551615
    59          },
    60          "tests": [
    61              {
    62                  "description": "comparison works for high numbers",
    63                  "data": 18446744073709551600,
    64                  "valid": true
    65              }
    66          ]
    67      },
    68      {
    69          "description": "float comparison with high precision",
    70          "schema": {
    71              "$schema": "https://json-schema.org/draft/2020-12/schema",
    72              "exclusiveMaximum": 972783798187987123879878123.18878137
    73          },
    74          "tests": [
    75              {
    76                  "description": "comparison works for high numbers",
    77                  "data": 972783798187987123879878123.188781371,
    78                  "valid": false
    79              }
    80          ]
    81      },
    82      {
    83          "description": "minimum integer comparison",
    84          "schema": {
    85              "$schema": "https://json-schema.org/draft/2020-12/schema",
    86              "minimum": -18446744073709551615
    87          },
    88          "tests": [
    89              {
    90                  "description": "comparison works for very negative numbers",
    91                  "data": -18446744073709551600,
    92                  "valid": true
    93              }
    94          ]
    95      },
    96      {
    97          "description": "float comparison with high precision on negative numbers",
    98          "schema": {
    99              "$schema": "https://json-schema.org/draft/2020-12/schema",
   100              "exclusiveMinimum": -972783798187987123879878123.18878137
   101          },
   102          "tests": [
   103              {
   104                  "description": "comparison works for very negative numbers",
   105                  "data": -972783798187987123879878123.188781371,
   106                  "valid": false
   107              }
   108          ]
   109      }
   110  ]