Skip to content

Commit

Permalink
declare datasetName field in the raw and derived obsolete createdatas…
Browse files Browse the repository at this point in the history
…et dto
  • Loading branch information
Junjiequan committed Jan 7, 2025
1 parent a031fb3 commit 6100244
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/datasets/dto/create-dataset.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,4 @@ export class CreateDatasetDto extends UpdateDatasetDto {
})
@IsString()
readonly type: string;

@ApiProperty({
type: String,
required: true,
description:
"A name for the dataset, given by the creator to carry some semantic meaning. Useful for display purposes e.g. instead of displaying the pid.",
})
@IsString()
declare readonly datasetName: string;
}
9 changes: 9 additions & 0 deletions src/datasets/dto/create-derived-dataset-obsolete.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,13 @@ export class CreateDerivedDatasetObsoleteDto extends UpdateDerivedDatasetObsolet
@IsOptional()
@IsString()
readonly version?: string;

@ApiProperty({
type: String,
required: true,
description:
"A name for the dataset, given by the creator to carry some semantic meaning. Useful for display purposes e.g. instead of displaying the pid.",
})
@IsString()
declare readonly datasetName: string;
}
9 changes: 9 additions & 0 deletions src/datasets/dto/create-raw-dataset-obsolete.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,13 @@ export class CreateRawDatasetObsoleteDto extends UpdateRawDatasetObsoleteDto {
@IsOptional()
@IsString()
readonly version?: string;

@ApiProperty({
type: String,
required: true,
description:
"A name for the dataset, given by the creator to carry some semantic meaning. Useful for display purposes e.g. instead of displaying the pid.",
})
@IsString()
declare readonly datasetName: string;
}

0 comments on commit 6100244

Please sign in to comment.