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 d705ad9 commit 878fda5Copy full SHA for 878fda5
src/config/schema.ts
@@ -1,4 +1,5 @@
1
import type { BaseConfitSchema } from '@sesamecare-oss/confit';
2
+import type { middleware } from 'express-openapi-validator';
3
import type { Level } from 'pino';
4
5
export interface ConfigurationItemEnabled {
@@ -16,7 +17,7 @@ export interface ConfigurationSchema extends BaseConfitSchema {
16
17
preLog?: boolean;
18
};
19
routing?: {
- openapi?: boolean;
20
+ openapi?: boolean | Parameters<typeof middleware>[0];
21
// Relative to the *root directory* of the app
22
routes?: string;
23
// Whether to add middleware that "freezes" the query string
0 commit comments