{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bodyspec/json-schema/bodyspec-user-response-schema.json",
  "title": "User",
  "description": "User model for API responses.\n\nNote: This model intentionally excludes sensitive or internal fields like:\n- is_admin: Admin status is determined from token claims, not exposed in responses\n- created_at/updated_at: Internal timestamps not needed in public API",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bodyspec-users-api-openapi.yml#/components/schemas/UserResponse",
  "properties": {
    "user_id": {
      "type": "string",
      "title": "User Id",
      "description": "Unique identifier for the user"
    },
    "email": {
      "type": "string",
      "format": "email",
      "title": "Email",
      "description": "User's email address"
    },
    "first_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "First Name",
      "description": "User's first name"
    },
    "last_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Name",
      "description": "User's last name"
    },
    "phone": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Phone",
      "description": "Phone number in E.164 format"
    }
  },
  "type": "object",
  "required": [
    "user_id",
    "email"
  ]
}