Skip to content

Commit

Permalink
fix: validate api spec by default
Browse files Browse the repository at this point in the history
  • Loading branch information
cdimascio committed Mar 7, 2021
1 parent b0be2d6 commit 4637d2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/openapi.validator.ts
Expand Up @@ -43,6 +43,7 @@ export class OpenApiValidator {
this.validateOptions(options);
this.normalizeOptions(options);

if (options.validateApiSpec == null) options.validateApiSpec = true;
if (options.validateRequests == null) options.validateRequests = true;
if (options.validateResponses == null) options.validateResponses = false;
if (options.validateSecurity == null) options.validateSecurity = true;
Expand Down

0 comments on commit 4637d2c

Please sign in to comment.