Skip to content

Commit

Permalink
update default specs validation params to match swagger docs
Browse files Browse the repository at this point in the history
  • Loading branch information
klakhov committed Jan 10, 2025
1 parent 43cc1f3 commit 26a6bd2
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions tests/cypress/support/default-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,29 @@ function defaultTaskSpec({
const extras = {};
if (validationParams) {
const convertedParams = {};
if (validationParams.frames) {
convertedParams.frames = validationParams.frames;
if (validationParams.mode) {
convertedParams.mode = validationParams.mode;
}
if (validationParams.frameSelectionMethod) {
convertedParams.frame_selection_method = validationParams.frameSelectionMethod;
}
if (validationParams.randomSeed) {
convertedParams.random_seed = validationParams.randomSeed;
}
if (validationParams.frames) {
convertedParams.frames = validationParams.frames;
}
if (validationParams.frameCount) {
convertedParams.frame_count = validationParams.frameCount;
}
if (validationParams.frameShare) {
convertedParams.frame_share = validationParams.frameShare;
}
if (validationParams.framesPerJobCount) {
convertedParams.frames_per_job_count = validationParams.framesPerJobCount;
}
if (validationParams.mode) {
convertedParams.mode = validationParams.mode;
}
if (validationParams.randomSeed) {
convertedParams.random_seed = validationParams.randomSeed;
if (validationParams.framesPerJobShare) {
convertedParams.frames_per_job_share = validationParams.framesPerJobShare;
}

extras.validation_params = convertedParams;
Expand Down

0 comments on commit 26a6bd2

Please sign in to comment.