Skip to content

Commit

Permalink
Delete comments #601
Browse files Browse the repository at this point in the history
  • Loading branch information
pilerou committed Dec 27, 2021
1 parent 8fc7226 commit e68c9c7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/openapi.validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,11 @@ export class OpenApiValidator {
ajvOpts,
resOpts,
).preProcess();
/*return {
context: new OpenApiContext(spec, this.options.ignorePaths, this.options.ignoreUndocumented),
responseApiDoc: sp.apiDocRes,
error: null,
};*/
return {
req : new middlewares.RequestValidator(apiDoc, this.ajvOpts.request).getAJV(),
res : new middlewares.ResponseValidator(
apiDoc,
this.ajvOpts.response,
// This has already been converted from boolean if required
this.options.validateResponses as ValidateResponseOpts,)
.getAJV(),
};
Expand Down

0 comments on commit e68c9c7

Please sign in to comment.