Skip to content

Commit

Permalink
openapi-type: strictly define ResponsesObject type
Browse files Browse the repository at this point in the history
fixes #742

(cherry picked from commit b7bf369)
  • Loading branch information
mirceanis committed Jun 2, 2021
1 parent bb744c6 commit 3cd8e8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/openapi-types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ export namespace OpenAPIV2 {
} & T;

export interface ResponsesObject {
[index: string]: Response;
[index: string]: Response | undefined;
default?: Response;
}

Expand Down
3 changes: 2 additions & 1 deletion packages/openapi-types/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"declaration": true,
"module": "CommonJS",
"outDir": "dist",
"sourceMap": true
"sourceMap": true,
"strict": true
},
"files": [
"index.ts"
Expand Down

0 comments on commit 3cd8e8d

Please sign in to comment.