{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/swimlane/main/json-schema/swimlane-user.json",
  "title": "Swimlane User",
  "description": "A user account within the Swimlane platform.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique user identifier"
    },
    "displayName": {
      "type": "string",
      "description": "User display name shown in the UI"
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "User email address"
    },
    "userName": {
      "type": "string",
      "description": "Username used for login"
    },
    "roles": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of role identifiers assigned to the user"
    },
    "groups": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of group identifiers the user belongs to"
    },
    "isAdmin": {
      "type": "boolean",
      "description": "Whether the user has administrator privileges"
    },
    "active": {
      "type": "boolean",
      "description": "Whether the user account is active"
    },
    "disabled": {
      "type": "boolean",
      "description": "Whether the user account is disabled"
    }
  }
}
