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

     1  {
     2    "$schema": "http:\/\/json-schema.org\/draft-04\/schema#",
     3    "$ref": "#\/definitions\/TestUser",
     4    "definitions": {
     5      "GrandfatherType": {
     6        "properties": {},
     7        "additionalProperties": true,
     8        "type": "object"
     9      },
    10      "TestUser": {
    11        "required": [
    12          "some_base_property",
    13          "some_base_property_yaml",
    14          "grand",
    15          "SomeUntaggedBaseProperty",
    16          "PublicNonExported",
    17          "id",
    18          "name",
    19          "password",
    20          "TestFlag",
    21          "age",
    22          "email",
    23          "Baz",
    24          "color",
    25          "roles",
    26          "raw"
    27        ],
    28        "properties": {
    29          "some_base_property": {
    30            "type": "integer"
    31          },
    32          "some_base_property_yaml": {
    33            "type": "integer"
    34          },
    35          "grand": {
    36            "$schema": "http:\/\/json-schema.org\/draft-04\/schema#",
    37            "$ref": "#\/definitions\/GrandfatherType"
    38          },
    39          "SomeUntaggedBaseProperty": {
    40            "type": "boolean"
    41          },
    42          "PublicNonExported": {
    43            "type": "integer"
    44          },
    45          "id": {
    46            "type": "integer"
    47          },
    48          "name": {
    49            "maxLength": 20,
    50            "minLength": 1,
    51            "pattern": ".*",
    52            "type": "string",
    53            "title": "the name",
    54            "description": "this is a property",
    55            "default": "alex",
    56            "examples": [
    57              "joe",
    58              "lucy"
    59            ],
    60            "readOnly": true
    61          },
    62          "password": {
    63            "type": "string",
    64            "writeOnly": true
    65          },
    66          "friends": {
    67            "items": {
    68              "type": "integer"
    69            },
    70            "type": "array",
    71            "description": "list of IDs, omitted when empty"
    72          },
    73          "tags": {
    74            "patternProperties": {
    75              ".*": {
    76                "additionalProperties": true
    77              }
    78            },
    79            "type": "object"
    80          },
    81          "TestFlag": {
    82            "type": "boolean"
    83          },
    84          "birth_date": {
    85            "type": "string",
    86            "format": "date-time"
    87          },
    88          "website": {
    89            "type": "string",
    90            "format": "uri"
    91          },
    92          "network_address": {
    93            "type": "string",
    94            "format": "ipv4"
    95          },
    96          "photo": {
    97            "type": "string",
    98            "media": {
    99              "binaryEncoding": "base64"
   100            }
   101          },
   102          "photo2": {
   103            "type": "string",
   104            "media": {
   105              "binaryEncoding": "base64"
   106            }
   107          },
   108          "feeling": {
   109            "oneOf": [
   110              {
   111                "type": "string"
   112              },
   113              {
   114                "type": "integer"
   115              }
   116            ]
   117          },
   118          "age": {
   119            "maximum": 120,
   120            "exclusiveMaximum": true,
   121            "minimum": 18,
   122            "exclusiveMinimum": true,
   123            "type": "integer"
   124          },
   125          "email": {
   126            "type": "string",
   127            "format": "email"
   128          },
   129          "Baz": {
   130            "type": "string",
   131            "foo": [
   132              "bar",
   133              "bar1"
   134            ],
   135            "hello": "world"
   136          },
   137          "color": {
   138            "enum": [
   139              "red",
   140              "green",
   141              "blue"
   142            ],
   143            "type": "string"
   144          },
   145          "rank": {
   146            "enum": [
   147              1,
   148              2,
   149              3
   150            ],
   151            "type": "integer"
   152          },
   153          "mult": {
   154            "enum": [
   155              1,
   156              1.5,
   157              2
   158            ],
   159            "type": "number"
   160          },
   161          "roles": {
   162            "items": {
   163              "enum": [
   164                "admin",
   165                "moderator",
   166                "user"
   167              ],
   168              "type": "string"
   169            },
   170            "type": "array"
   171          },
   172          "priorities": {
   173            "items": {
   174              "enum": [
   175                -1,
   176                0,
   177                1
   178              ],
   179              "type": "integer"
   180            },
   181            "type": "array"
   182          },
   183          "offsets": {
   184            "items": {
   185              "enum": [
   186                1.570796,
   187                3.141592,
   188                6.283185
   189              ],
   190              "type": "number"
   191            },
   192            "type": "array"
   193          },
   194          "raw": {
   195            "additionalProperties": true
   196          }
   197        },
   198        "additionalProperties": false,
   199        "type": "object"
   200      }
   201    }
   202  }