We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06b809e commit 07fd14fCopy full SHA for 07fd14f
src/openapi.ts
@@ -86,7 +86,7 @@ export async function openApi<
86
};
87
88
const defaultOptions: OAPIOpts = {
89
- apiSpec,
+ apiSpec: app.locals.openApiSpecification,
90
ignoreUndocumented: true,
91
validateRequests: {
92
allowUnknownQueryParameters: true,
@@ -146,5 +146,6 @@ export async function openApi<
146
...(typeof routing.openapi === 'object' ? routing.openapi : {}),
147
...openApiOptions,
148
149
+
150
return OpenApiValidator.middleware(_.defaultsDeep(defaultOptions, combinedOptions));
151
}
0 commit comments