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

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