Skip to content

Commit e639e02

Browse files
committed
fix(types): allow partial openapi options to be provided
1 parent f10e674 commit e639e02

File tree

3 files changed

+222
-217
lines changed

3 files changed

+222
-217
lines changed

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -86,32 +86,32 @@
8686
"cookie-parser": "^1.4.6",
8787
"dotenv": "^16.3.1",
8888
"express": "next",
89-
"express-openapi-validator": "^5.0.6",
89+
"express-openapi-validator": "^5.1.0",
9090
"glob": "^8.1.0",
9191
"lodash": "^4.17.21",
9292
"minimist": "^1.2.8",
93-
"opentelemetry-instrumentation-fetch-node": "^1.1.0",
94-
"pino": "^8.16.1",
93+
"opentelemetry-instrumentation-fetch-node": "^1.1.2",
94+
"pino": "^8.16.2",
9595
"read-pkg-up": "^7.0.1"
9696
},
9797
"devDependencies": {
98-
"@commitlint/cli": "^18.2.0",
99-
"@commitlint/config-conventional": "^18.1.0",
98+
"@commitlint/cli": "^18.4.2",
99+
"@commitlint/config-conventional": "^18.4.2",
100100
"@openapi-typescript-infra/coconfig": "^4.2.2",
101101
"@semantic-release/changelog": "^6.0.3",
102102
"@semantic-release/commit-analyzer": "^11.1.0",
103103
"@semantic-release/exec": "^6.0.3",
104104
"@semantic-release/git": "^10.0.1",
105105
"@semantic-release/release-notes-generator": "^12.1.0",
106-
"@types/cookie-parser": "^1.4.5",
107-
"@types/express": "^4.17.20",
106+
"@types/cookie-parser": "^1.4.6",
107+
"@types/express": "^4.17.21",
108108
"@types/glob": "^8.1.0",
109-
"@types/lodash": "^4.14.200",
110-
"@types/minimist": "^1.2.4",
111-
"@types/node": "^20.8.10",
112-
"@types/supertest": "^2.0.15",
113-
"@typescript-eslint/eslint-plugin": "^6.10.0",
114-
"@typescript-eslint/parser": "^6.10.0",
109+
"@types/lodash": "^4.14.201",
110+
"@types/minimist": "^1.2.5",
111+
"@types/node": "^20.9.1",
112+
"@types/supertest": "^2.0.16",
113+
"@typescript-eslint/eslint-plugin": "^6.11.0",
114+
"@typescript-eslint/parser": "^6.11.0",
115115
"coconfig": "^1.0.0",
116116
"eslint": "^8.53.0",
117117
"eslint-config-prettier": "^9.0.0",

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export interface ServiceOptions {
143143
configurationDirectories: string[];
144144

145145
// Add or control OpenAPI options such as security handlers
146-
openApiOptions?: Parameters<typeof middleware>[0];
146+
openApiOptions?: Partial<Parameters<typeof middleware>[0]>;
147147

148148
shortstopHandlers: Record<string, ShortstopHandler<string, unknown>>;
149149
}

0 commit comments

Comments
 (0)