@ng-openapi/zod 0.0.12-pr-91-bugfix-nested-objects-parameter-fb5e988.0 → 0.0.12-pr-92-feature-single-request-parameter-0b340a2.0

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/index.cjs CHANGED
@@ -40,11 +40,11 @@ var path2 = __toESM(require("path"), 1);
40
40
 
41
41
  // ../../shared/src/utils/string.utils.ts
42
42
  function camelCase(str2) {
43
- return str2.replace(/[-_.\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toLowerCase());
43
+ return str2.replace(/[-_\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toLowerCase());
44
44
  }
45
45
  __name(camelCase, "camelCase");
46
46
  function pascalCase(str2) {
47
- return str2.replace(/[-_.\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toUpperCase());
47
+ return str2.replace(/[-_\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toUpperCase());
48
48
  }
49
49
  __name(pascalCase, "pascalCase");
50
50
 
@@ -122,6 +122,10 @@ var SERVICE_INDEX_GENERATOR_HEADER_COMMENT = defaultHeaderComment + `* Generated
122
122
  * Do not edit this file manually
123
123
  */
124
124
  `;
125
+ var REQUEST_PARAMS_GENERATOR_HEADER_COMMENT = defaultHeaderComment + `* Generated request parameter interfaces
126
+ * Do not edit this file manually
127
+ */
128
+ `;
125
129
  var MAIN_INDEX_GENERATOR_HEADER_COMMENT = defaultHeaderComment + `* Entrypoint for the client
126
130
  * Do not edit this file manually
127
131
  */
package/index.d.ts CHANGED
@@ -127,6 +127,7 @@ interface GeneratorConfig {
127
127
  [contentType: string]: "json" | "blob" | "arraybuffer" | "text";
128
128
  };
129
129
  customizeMethodName?: (operationId: string) => string;
130
+ useSingleRequestParameter?: boolean;
130
131
  };
131
132
  compilerOptions?: {
132
133
  declaration?: boolean;
package/index.js CHANGED
@@ -6,11 +6,11 @@ import * as path2 from "path";
6
6
 
7
7
  // ../../shared/src/utils/string.utils.ts
8
8
  function camelCase(str2) {
9
- return str2.replace(/[-_.\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toLowerCase());
9
+ return str2.replace(/[-_\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toLowerCase());
10
10
  }
11
11
  __name(camelCase, "camelCase");
12
12
  function pascalCase(str2) {
13
- return str2.replace(/[-_.\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toUpperCase());
13
+ return str2.replace(/[-_\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : "").replace(/^./, (char) => char.toUpperCase());
14
14
  }
15
15
  __name(pascalCase, "pascalCase");
16
16
 
@@ -88,6 +88,10 @@ var SERVICE_INDEX_GENERATOR_HEADER_COMMENT = defaultHeaderComment + `* Generated
88
88
  * Do not edit this file manually
89
89
  */
90
90
  `;
91
+ var REQUEST_PARAMS_GENERATOR_HEADER_COMMENT = defaultHeaderComment + `* Generated request parameter interfaces
92
+ * Do not edit this file manually
93
+ */
94
+ `;
91
95
  var MAIN_INDEX_GENERATOR_HEADER_COMMENT = defaultHeaderComment + `* Entrypoint for the client
92
96
  * Do not edit this file manually
93
97
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-openapi/zod",
3
- "version": "0.0.12-pr-91-bugfix-nested-objects-parameter-fb5e988.0",
3
+ "version": "0.0.12-pr-92-feature-single-request-parameter-0b340a2.0",
4
4
  "description": "Zod validation plugin for ng-openapi - Generate Zod schemas from OpenAPI specifications",
5
5
  "keywords": [
6
6
  "angular",