package de.effigenix.infrastructure.usermanagement.web.dto;

import de.effigenix.domain.usermanagement.RoleName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;

/**
 * Request DTO for assigning a role to a user.
 *
 * Used by POST /api/users/{id}/roles endpoint (ADMIN only).
 */
@Schema(description = "Request to assign a role to a user")
public record AssignRoleRequest(
        @Schema(description = "Role name to assign", example = "MANAGER", required = true)
        @NotNull(message = "Role name is required")
        RoleName roleName
) {
}
