Skip to content

Commit 878fda5

Browse files
committed
fix(schema): add missing schema change
1 parent d705ad9 commit 878fda5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/config/schema.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { BaseConfitSchema } from '@sesamecare-oss/confit';
2+
import type { middleware } from 'express-openapi-validator';
23
import type { Level } from 'pino';
34

45
export interface ConfigurationItemEnabled {
@@ -16,7 +17,7 @@ export interface ConfigurationSchema extends BaseConfitSchema {
1617
preLog?: boolean;
1718
};
1819
routing?: {
19-
openapi?: boolean;
20+
openapi?: boolean | Parameters<typeof middleware>[0];
2021
// Relative to the *root directory* of the app
2122
routes?: string;
2223
// Whether to add middleware that "freezes" the query string

0 commit comments

Comments
 (0)