From a408f090abdb1fa308fa640bef5f74b548e21ea1 Mon Sep 17 00:00:00 2001 From: ckho Date: Tue, 1 Jun 2021 18:20:19 +0800 Subject: [PATCH] fix: resolve Deprecation code: CLI_OPTIONS_SCHEMA' --- src/ServerlessOpenApiDocumentation.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ServerlessOpenApiDocumentation.ts b/src/ServerlessOpenApiDocumentation.ts index b67527b..ea541fe 100644 --- a/src/ServerlessOpenApiDocumentation.ts +++ b/src/ServerlessOpenApiDocumentation.ts @@ -65,14 +65,20 @@ export class ServerlessOpenApiDocumentation { options: { output: { usage: "Output file location [default: openapi.yml|json]", + type: "string", + required: false, shortcut: "o" }, format: { usage: "OpenAPI file format (yml|json) [default: yml]", + type: "string", + required: false, shortcut: "f" }, indent: { usage: "File indentation in spaces [default: 2]", + type: "string", + required: false, shortcut: "i" } }