{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/artificialwit-com/json-schema/artificialwit-com-scim-user-schema.json",
  "title": "ScimUser",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/artificialwit-com-openapi.json#/components/schemas/ScimUser",
  "properties": {
    "schemas": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Schemas"
    },
    "id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Id"
    },
    "externalId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Externalid"
    },
    "userName": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Username"
    },
    "name": {
      "anyOf": [
        {
          "$ref": "#/$defs/ScimName"
        },
        {
          "type": "null"
        }
      ]
    },
    "displayName": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Displayname"
    },
    "emails": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/ScimEmail"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Emails"
    },
    "active": {
      "type": "boolean",
      "title": "Active",
      "default": true
    },
    "meta": {
      "anyOf": [
        {
          "$ref": "#/$defs/ScimMeta"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "$defs": {
    "ScimEmail": {
      "properties": {
        "value": {
          "type": "string",
          "title": "Value"
        },
        "primary": {
          "type": "boolean",
          "title": "Primary",
          "default": true
        },
        "type": {
          "type": "string",
          "title": "Type",
          "default": "work"
        }
      },
      "type": "object",
      "required": [
        "value"
      ],
      "title": "ScimEmail"
    },
    "ScimMeta": {
      "properties": {
        "resourceType": {
          "type": "string",
          "title": "Resourcetype"
        },
        "created": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created"
        },
        "lastModified": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lastmodified"
        },
        "location": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Location"
        },
        "version": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Version"
        }
      },
      "type": "object",
      "required": [
        "resourceType"
      ],
      "title": "ScimMeta"
    },
    "ScimName": {
      "properties": {
        "formatted": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Formatted"
        },
        "givenName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Givenname"
        },
        "familyName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Familyname"
        },
        "middleName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Middlename"
        }
      },
      "type": "object",
      "title": "ScimName"
    }
  }
}