github.com/alecthomas/jsonschema@v0.0.0-20220216202328-9eeeec9d044b/fixtures/nullable.json (about)

     1  {
     2    "$schema": "http://json-schema.org/draft-04/schema#",
     3    "$ref": "#/definitions/TestNullable",
     4    "definitions": {
     5      "TestNullable": {
     6        "required": ["child1"],
     7        "properties": {
     8          "child1": {
     9            "oneOf": [
    10              {
    11                "type": "string"
    12              },
    13              {
    14                "type": "null"
    15              }
    16            ]
    17          }
    18        },
    19        "additionalProperties": false,
    20        "type": "object"
    21      }
    22    }
    23  }