{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/giljo-ai/json-schema/giljo-ai-user-response-schema.json",
  "title": "UserResponse",
  "description": "Response model for user data (password excluded)",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/giljo-ai-users-api-openapi.yml#/components/schemas/UserResponse",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "username": {
      "type": "string",
      "title": "Username"
    },
    "email": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Email"
    },
    "first_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "First Name"
    },
    "last_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Name"
    },
    "full_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Full Name"
    },
    "role": {
      "type": "string",
      "title": "Role"
    },
    "tenant_key": {
      "type": "string",
      "title": "Tenant Key"
    },
    "is_active": {
      "type": "boolean",
      "title": "Is Active"
    },
    "created_at": {
      "type": "string",
      "title": "Created At"
    },
    "last_login": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Login"
    }
  },
  "type": "object",
  "required": [
    "id",
    "username",
    "email",
    "full_name",
    "role",
    "tenant_key",
    "is_active",
    "created_at",
    "last_login"
  ]
}