Skip to content

Commit

Permalink
chore: params required fields fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MWBlocky committed Mar 5, 2024
1 parent a1b5119 commit 78b649f
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,39 +58,39 @@ export class JobsFetchParamsDto {
exchange_oracle_url: string;

@AutoMap()
@ApiProperty({ example: 'string' })
@ApiProperty({ example: 'string', required: false })
assignment_id: string;

@AutoMap()
@ApiProperty({ example: 'string' })
@ApiProperty({ example: 'string', required: false })
escrow_address: string;

@AutoMap()
@ApiProperty({ example: 0 })
@ApiProperty({ example: 0, required: false })
chain_id: number;

@AutoMap()
@ApiProperty({ example: 'job type' })
@ApiProperty({ example: 'job type', required: false })
job_type: string;

@AutoMap()
@ApiProperty({ example: 'ACTIVE' })
@ApiProperty({ example: 'ACTIVE', required: false })
status: StatusEnum;

@AutoMap()
@ApiProperty({ example: 5, default: 5, maximum: 10 })
@ApiProperty({ example: 5, default: 5, maximum: 10, required: false })
page_size: number;

@AutoMap()
@ApiProperty({ example: 0, default: 0 })
@ApiProperty({ example: 0, default: 0, required: false })
page: number;

@AutoMap()
@ApiProperty({ example: 'ASC', default: 'ASC' })
@ApiProperty({ example: 'ASC', default: 'ASC', required: false })
sort: SortOrder;

@AutoMap()
@ApiProperty({ example: 'created_at', default: 'created_at' })
@ApiProperty({ example: 'created_at', default: 'created_at', required: false })
sort_field: SortField;
}

Expand Down

0 comments on commit 78b649f

Please sign in to comment.