import { IsNotEmpty, IsOptional, IsString } from '@jovotech/output';

export class IdentityData {
  @IsString()
  @IsNotEmpty()
  id: string;

  @IsOptional()
  @IsString()
  @IsNotEmpty()
  user_ref?: string;

  @IsOptional()
  @IsString()
  @IsNotEmpty()
  post_id?: string;

  @IsOptional()
  @IsString()
  @IsNotEmpty()
  comment_id?: string;
}

import { IsNotEmpty, IsOptional, IsString } from '@jovotech/output';

export class IdentityData {
  @IsString()
  id: string;

  @IsOptional()
  @IsString()
  @IsNotEmpty()
  user_ref?: string;

  @IsOptional()
  @IsString()
  @IsNotEmpty()
  post_id?: string;

  @IsOptional()
  @IsString()
  @IsNotEmpty()
  comment_id?: string;
}

Fix bug that was caused because an identity-id could not be passed
:bug: Fix bug that was caused because an identity-id could not be passed
