{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/softsync-ai/json-schema/softsync-ai-group-member-dto-schema.json",
  "title": "GroupMemberDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/softsync-ai-groups-views-api-openapi.yml#/components/schemas/GroupMemberDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "userId": {
      "type": "string"
    },
    "userEmail": {
      "type": "string"
    },
    "userFirstName": {
      "type": "string"
    },
    "userLastName": {
      "type": "string"
    },
    "userAvatarUrl": {
      "type": "string"
    },
    "role": {
      "allOf": [
        {
          "$ref": "#/$defs/GroupRole"
        }
      ]
    },
    "joinedAt": {
      "format": "date-time",
      "type": "string"
    }
  },
  "required": [
    "id",
    "userId",
    "userEmail",
    "role",
    "joinedAt"
  ],
  "$defs": {
    "GroupRole": {
      "type": "string",
      "enum": [
        "OWNER",
        "ADMIN",
        "EDITOR",
        "VIEWER"
      ],
      "description": "Role in the group"
    }
  }
}