File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 1
1
import type { OpenAPIV3 } from 'openapi-types'
2
- import type { ReferenceConfiguration } from '@scalar/types'
2
+ import type { ReferenceConfiguration , TagGroup } from '@scalar/types'
3
3
import type { SwaggerUIOptions } from './swagger/types'
4
4
5
5
export interface ElysiaSwaggerConfig < Path extends string = '/swagger' > {
@@ -8,11 +8,7 @@ export interface ElysiaSwaggerConfig<Path extends string = '/swagger'> {
8
8
*
9
9
* @see https://swagger.io/specification/v2/
10
10
*/
11
- documentation ?: Omit <
12
- Partial < OpenAPIV3 . Document > ,
13
- | 'x-express-openapi-additional-middleware'
14
- | 'x-express-openapi-validation-strict'
15
- >
11
+ documentation ?: ElysiaSwaggerDocumentation
16
12
/**
17
13
* Choose your provider, Scalar or Swagger UI
18
14
*
@@ -117,3 +113,15 @@ export interface ElysiaSwaggerConfig<Path extends string = '/swagger'> {
117
113
*/
118
114
excludeTags ?: string [ ]
119
115
}
116
+
117
+ interface ElysiaSwaggerDocumentation extends Omit <
118
+ Partial < OpenAPIV3 . Document > ,
119
+ | 'x-express-openapi-additional-middleware'
120
+ | 'x-express-openapi-validation-strict'
121
+ > {
122
+ /**
123
+ * Group tags in Scalar UI using `x-tagGroups` property
124
+ */
125
+ 'x-tagGroups' ?: TagGroup [ ]
126
+ }
127
+
You can’t perform that action at this time.
0 commit comments