Skip to content

Commit

Permalink
disable experient controller validation (#1051)
Browse files Browse the repository at this point in the history
  • Loading branch information
danoswaltCL authored Oct 11, 2023
1 parent fbbb05e commit 403da73
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ export class ExperimentController {
*/
@Post('/paginated')
public async paginatedFind(
@Body({ validate: true })
@Body({ validate: false })
paginatedParams: ExperimentPaginatedParamsValidator,
@Req()
request: AppRequest
Expand Down Expand Up @@ -932,7 +932,7 @@ export class ExperimentController {

@Post()
public create(
@Body({ validate: true }) experiment: ExperimentDTO,
@Body({ validate: false }) experiment: ExperimentDTO,
@CurrentUser() currentUser: User,
@Req() request: AppRequest
): Promise<ExperimentDTO> {
Expand Down Expand Up @@ -973,7 +973,7 @@ export class ExperimentController {

@Post('/batch')
public createMultipleExperiments(
@Body({ validate: true, type: ExperimentDTO }) experiment: ExperimentDTO[],
@Body({ validate: false, type: ExperimentDTO }) experiment: ExperimentDTO[],
@CurrentUser() currentUser: User,
@Req() request: AppRequest
): Promise<ExperimentDTO[]> {
Expand Down Expand Up @@ -1061,7 +1061,7 @@ export class ExperimentController {
*/
@Post('/state')
public async updateState(
@Body({ validate: true })
@Body({ validate: false })
experiment: AssignmentStateUpdateValidator,
@CurrentUser() currentUser: User,
@Req() request: AppRequest
Expand Down Expand Up @@ -1125,7 +1125,7 @@ export class ExperimentController {
@Put('/:id')
public update(
@Param('id') id: string,
@Body({ validate: true })
@Body({ validate: false })
experiment: ExperimentDTO,
@CurrentUser() currentUser: User,
@Req() request: AppRequest
Expand Down Expand Up @@ -1162,7 +1162,7 @@ export class ExperimentController {
*/
@Post('/import')
public importExperiment(
@Body({ validate: true, type: ExperimentDTO })
@Body({ validate: false, type: ExperimentDTO })
experiments: ExperimentDTO[],
@CurrentUser() currentUser: User,
@Req() request: AppRequest
Expand All @@ -1172,7 +1172,7 @@ export class ExperimentController {

@Post('/export')
public exportExperiment(
@Body({ validate: true, type: String }) ids: string[],
@Body({ validate: false, type: String }) ids: string[],
@CurrentUser() currentUser: User,
@Req() request: AppRequest
): Promise<ExperimentDTO[]> {
Expand Down

0 comments on commit 403da73

Please sign in to comment.