diff --git a/package.json b/package.json index 1f1ea20..a7fa148 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hapi-openapi3", - "version": "1.0.3-alpha.5", + "version": "1.0.3-alpha.6", "description": "Generate OpenAPI 3.0.0 for Hapi", "files": [ "dist/" @@ -15,8 +15,6 @@ }, "scripts": { "publish": "npm publish --access public", - "publish:beta": "npm publish --access public --tag beta", - "publish:alpha": "npm publish --access public --tag alpha", "prepare": "npm run build", "build": "webpack --mode production", "build:watch": "webpack --mode development --watch --devtool eval-source-map", diff --git a/src/types/options.ts b/src/types/options.ts index 5586efb..a0ebac3 100644 --- a/src/types/options.ts +++ b/src/types/options.ts @@ -30,7 +30,7 @@ export interface ServerPluginOptions { includeFn: (route: RequestRoute) => boolean; } -export interface RequestOption { +export interface RequestOptions { example?: any; examples?: Record; } @@ -43,7 +43,7 @@ export interface ResponseOptions { } export interface RoutePluginOptions { - request: RequestOption; + request: RequestOptions; response?: { schema?: ResponseOptions; status?: Record;