MVP for API Key authentication
This commit is contained in:
@@ -6,7 +6,7 @@ interface OpenApiDocWithTagGroups { 'x-tagGroups': { name: string, tags: string[
|
||||
type OpenApiDocumentation = Omit<Partial<OpenAPIV3.Document<OpenApiDocWithTagGroups>>, 'x-express-openapi-additional-middleware' | 'x-express-openapi-validation-strict'>
|
||||
|
||||
export const swaggerPlugin = openapi({
|
||||
path: '/swagger',
|
||||
path: '/docs',
|
||||
provider: 'scalar',
|
||||
mapJsonSchema: {
|
||||
zod: z.toJSONSchema,
|
||||
@@ -17,10 +17,12 @@ export const swaggerPlugin = openapi({
|
||||
version: 'v1.0.0',
|
||||
},
|
||||
'tags': [
|
||||
{ name: 'Auth', description: 'Auth API' },
|
||||
{ name: 'Device', description: 'Device API' },
|
||||
],
|
||||
// --- Grouping di atas tag ---
|
||||
'x-tagGroups': [
|
||||
{ name: 'Auth', tags: ['Auth'] },
|
||||
{ name: 'Device', tags: ['Device'] },
|
||||
],
|
||||
'components': {
|
||||
|
||||
Reference in New Issue
Block a user