go-duck-cli 1.3.371 → 1.3.372
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generators/swagger.js +2 -2
- package/package.json +1 -1
package/generators/swagger.js
CHANGED
|
@@ -51,7 +51,7 @@ export const generateSwaggerDocs = async (config, entities, outputDir, openEntit
|
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
const commonHeaders = [
|
|
54
|
-
{ name: 'X-Tenant-ID', in: 'header', required:
|
|
54
|
+
{ name: 'X-Tenant-ID', in: 'header', required: false, schema: { type: 'string', default: 'default' }, description: 'Multi-tenancy context identifier' }
|
|
55
55
|
];
|
|
56
56
|
|
|
57
57
|
const isOpen = (entityName, action) => {
|
|
@@ -273,7 +273,7 @@ export const generateSwaggerDocs = async (config, entities, outputDir, openEntit
|
|
|
273
273
|
}
|
|
274
274
|
},
|
|
275
275
|
parameters: [
|
|
276
|
-
{ name: 'X-Tenant-ID', in: 'header', required:
|
|
276
|
+
{ name: 'X-Tenant-ID', in: 'header', required: false, schema: { type: 'string', default: 'master_internal' }, description: 'SuperAdmin internal master bypass token' }
|
|
277
277
|
],
|
|
278
278
|
responses: {
|
|
279
279
|
200: { description: 'Success' },
|