Skip to content

Commit

Permalink
Update options types
Browse files Browse the repository at this point in the history
  • Loading branch information
lueenavarro committed Jul 12, 2021
1 parent 761fbe0 commit 6156587
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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/"
Expand All @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/types/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface ServerPluginOptions {
includeFn: (route: RequestRoute) => boolean;
}

export interface RequestOption {
export interface RequestOptions {
example?: any;
examples?: Record<string, any>;
}
Expand All @@ -43,7 +43,7 @@ export interface ResponseOptions {
}

export interface RoutePluginOptions {
request: RequestOption;
request: RequestOptions;
response?: {
schema?: ResponseOptions;
status?: Record<string, ResponseOptions>;
Expand Down

0 comments on commit 6156587

Please sign in to comment.