@kubb/plugin-ts 5.0.0-beta.35 → 5.0.0-beta.36
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/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -4
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- /package/dist/{chunk--u3MIqq1.js → chunk-C0LytTxp.js} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -900,17 +900,17 @@ function getOperationParameters(node, options = {}) {
|
|
|
900
900
|
* - `path` groups use the second path segment (`/pet/findByStatus` → `pet`).
|
|
901
901
|
* - other groups use `${camelCase(group)}${suffix}` (e.g. `petController`).
|
|
902
902
|
*
|
|
903
|
-
*
|
|
903
|
+
* A user-provided `group.name` always wins over the default namer, so callers stay in
|
|
904
|
+
* control of their output folders. Returns `null` when grouping is disabled, matching the
|
|
905
|
+
* per-plugin convention.
|
|
904
906
|
*
|
|
905
907
|
* @param group - The user-supplied group option, or `undefined` to disable grouping.
|
|
906
908
|
* @param options.suffix - Appended to non-`path` group names, e.g. `'Controller'` or `'Requests'`.
|
|
907
|
-
* @param options.honorName - When `true`, a user-provided `group.name` overrides the default namer.
|
|
908
909
|
*
|
|
909
910
|
* @example
|
|
910
911
|
* ```ts
|
|
911
|
-
* createGroupConfig(group, { suffix: 'Controller' })
|
|
912
|
-
* createGroupConfig(group, { suffix: '
|
|
913
|
-
* createGroupConfig(group, { suffix: 'Requests', honorName: true }) // plugin-cypress, plugin-mcp
|
|
912
|
+
* createGroupConfig(group, { suffix: 'Controller' }) // plugin-ts, plugin-client, …
|
|
913
|
+
* createGroupConfig(group, { suffix: 'Requests' }) // plugin-cypress, plugin-mcp
|
|
914
914
|
* ```
|
|
915
915
|
*/
|
|
916
916
|
function createGroupConfig(group, options) {
|
|
@@ -921,7 +921,7 @@ function createGroupConfig(group, options) {
|
|
|
921
921
|
};
|
|
922
922
|
return {
|
|
923
923
|
...group,
|
|
924
|
-
name:
|
|
924
|
+
name: group.name ? group.name : defaultName
|
|
925
925
|
};
|
|
926
926
|
}
|
|
927
927
|
//#endregion
|