Skip to content

Commit

Permalink
oa test t3
Browse files Browse the repository at this point in the history
  • Loading branch information
DumpySquare committed Dec 12, 2022
1 parent 75bb204 commit 4a04c68
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/test/suite/next_oai_validation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,24 @@ suite('NEXT CM OpenApi Schema Validation', () => {
body: reqBody as unknown
};

const openApiValidator = new OpenApiValidator({
apiSpec,
validateRequests: {
allowUnknownQueryParameters: true
}
});

const validator = openApiValidator.createValidator();

await validator(req)
.then(x => {
const v = x;
console.log(v);
})
.catch(err => {
const zz = err;
console.log(zz);
});
// const openApiValidator = new OpenApiValidator({
// apiSpec,
// validateRequests: {
// allowUnknownQueryParameters: true
// }
// });

// const validator = openApiValidator.createValidator();

// await validator(req)
// .then(x => {
// const v = x;
// console.log(v);
// })
// .catch(err => {
// const zz = err;
// console.log(zz);
// });


}).timeout(10000);
Expand Down

0 comments on commit 4a04c68

Please sign in to comment.