{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/invopop/jsonschema/test-user",
  "properties": {
    "id": {
      "type": "integer"
    },
    "some_base_property": {
      "type": "integer"
    },
    "grand": {
      "properties": {
        "family_name": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "family_name"
      ]
    },
    "SomeUntaggedBaseProperty": {
      "type": "boolean"
    },
    "PublicNonExported": {
      "type": "integer"
    },
    "MapType": {
      "type": "object"
    },
    "name": {
      "type": "string",
      "maxLength": 20,
      "minLength": 1,
      "pattern": ".*",
      "title": "the name",
      "description": "this is a property",
      "default": "alex",
      "readOnly": true,
      "examples": [
        "joe",
        "lucy"
      ]
    },
    "password": {
      "type": "string",
      "writeOnly": true
    },
    "friends": {
      "items": {
        "type": "integer"
      },
      "type": "array",
      "description": "list of IDs, omitted when empty"
    },
    "tags": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object"
    },
    "options": {
      "type": "object"
    },
    "TestFlag": {
      "type": "boolean"
    },
    "TestFlagFalse": {
      "type": "boolean",
      "default": false
    },
    "TestFlagTrue": {
      "type": "boolean",
      "default": true
    },
    "birth_date": {
      "type": "string",
      "format": "date-time"
    },
    "website": {
      "type": "string",
      "format": "uri"
    },
    "network_address": {
      "type": "string",
      "format": "ipv4"
    },
    "photo": {
      "type": "string",
      "contentEncoding": "base64"
    },
    "photo2": {
      "type": "string",
      "contentEncoding": "base64"
    },
    "feeling": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "integer"
        }
      ]
    },
    "age": {
      "type": "integer",
      "maximum": 120,
      "exclusiveMaximum": 121,
      "minimum": 18,
      "exclusiveMinimum": 17
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "uuid": {
      "type": "string",
      "format": "uuid"
    },
    "Baz": {
      "type": "string",
      "foo": [
        "bar",
        "bar1"
      ],
      "hello": "world"
    },
    "bool_extra": {
      "type": "string",
      "isFalse": false,
      "isTrue": true
    },
    "color": {
      "type": "string",
      "enum": [
        "red",
        "green",
        "blue"
      ]
    },
    "rank": {
      "type": "integer",
      "enum": [
        1,
        2,
        3
      ]
    },
    "mult": {
      "type": "number",
      "enum": [
        1.0,
        1.5,
        2.0
      ]
    },
    "roles": {
      "items": {
        "type": "string",
        "enum": [
          "admin",
          "moderator",
          "user"
        ]
      },
      "type": "array"
    },
    "priorities": {
      "items": {
        "type": "integer",
        "enum": [
          -1,
          0,
          1
        ]
      },
      "type": "array"
    },
    "offsets": {
      "items": {
        "type": "number",
        "enum": [
          1.570796,
          3.141592,
          6.283185
        ]
      },
      "type": "array"
    },
    "anything": true,
    "raw": true
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "id",
    "some_base_property",
    "grand",
    "SomeUntaggedBaseProperty",
    "PublicNonExported",
    "MapType",
    "name",
    "password",
    "TestFlag",
    "photo",
    "photo2",
    "age",
    "email",
    "uuid",
    "Baz",
    "color",
    "roles",
    "raw"
  ]
}