From 30926d0e3a6ccf960d93a531cde96f4af1c8a0fc Mon Sep 17 00:00:00 2001 From: Raiyan Date: Wed, 19 Jun 2019 20:12:34 -0400 Subject: [PATCH] validate field in type definition of options --- lib/index.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/index.d.ts b/lib/index.d.ts index f4eb26f9..c8909cb1 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -255,6 +255,22 @@ declare namespace SwaggerParser { */ circular?: boolean | 'ignore' } + + /** + * The `validate` options control how Swagger Parser will validate the API. + */ + validate?: { + + /** + * If set to `false`, then validating against the Swagger 2.0 Schema or OpenAPI 3.0 Schema is disabled. + */ + schema?: boolean, + + /** + * If set to `false`, then validating against the Swagger 2.0 Specification is disabled. + */ + spec?: boolean, + } } export interface HTTPResolverOptions extends Partial {