vls-openapi-generator 1.6.0 → 1.6.1

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.
@@ -95,7 +95,7 @@ const generateOpenAPI = async () => {
95
95
  }
96
96
  }
97
97
  existingOpenAPIFile.paths['/' + fileName] = {
98
- [LAMBDA_CONFIG?.method?.toLowerCase() ?? 'post']: {
98
+ [LAMBDA_CONFIG?.api?.method?.toLowerCase() ?? 'post']: {
99
99
  tags: openAPIConfig.tags,
100
100
  parameters: queryParametersSchema ? queryParameters : undefined,
101
101
  requestBody: bodySchema
@@ -8,5 +8,7 @@ export type LambdaConfig = {
8
8
  };
9
9
  timeout?: number;
10
10
  memorySize?: number;
11
- method?: 'GET' | 'POST';
11
+ api?: {
12
+ method?: 'GET' | 'POST';
13
+ };
12
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vls-openapi-generator",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -96,7 +96,7 @@ export const generateOpenAPI = async (): Promise<void> => {
96
96
  }
97
97
 
98
98
  existingOpenAPIFile.paths['/' + fileName] = {
99
- [LAMBDA_CONFIG?.method?.toLowerCase() ?? 'post']: {
99
+ [LAMBDA_CONFIG?.api?.method?.toLowerCase() ?? 'post']: {
100
100
  tags: openAPIConfig.tags,
101
101
  parameters: queryParametersSchema ? queryParameters : undefined,
102
102
  requestBody: bodySchema
@@ -9,5 +9,7 @@ export type LambdaConfig = {
9
9
  };
10
10
  timeout?: number;
11
11
  memorySize?: number;
12
- method?: 'GET' | 'POST';
12
+ api?: {
13
+ method?: 'GET' | 'POST';
14
+ };
13
15
  };