@kubb/plugin-zod 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 CHANGED
@@ -317,17 +317,17 @@ function resolveContentTypeVariants(entries, baseName) {
317
317
  * - `path` groups use the second path segment (`/pet/findByStatus` → `pet`).
318
318
  * - other groups use `${camelCase(group)}${suffix}` (e.g. `petController`).
319
319
  *
320
- * Returns `null` when grouping is disabled, matching the per-plugin convention.
320
+ * A user-provided `group.name` always wins over the default namer, so callers stay in
321
+ * control of their output folders. Returns `null` when grouping is disabled, matching the
322
+ * per-plugin convention.
321
323
  *
322
324
  * @param group - The user-supplied group option, or `undefined` to disable grouping.
323
325
  * @param options.suffix - Appended to non-`path` group names, e.g. `'Controller'` or `'Requests'`.
324
- * @param options.honorName - When `true`, a user-provided `group.name` overrides the default namer.
325
326
  *
326
327
  * @example
327
328
  * ```ts
328
- * createGroupConfig(group, { suffix: 'Controller' }) // plugin-ts, plugin-zod
329
- * createGroupConfig(group, { suffix: 'Controller', honorName: true }) // plugin-faker, plugin-client, …
330
- * createGroupConfig(group, { suffix: 'Requests', honorName: true }) // plugin-cypress, plugin-mcp
329
+ * createGroupConfig(group, { suffix: 'Controller' }) // plugin-ts, plugin-client, …
330
+ * createGroupConfig(group, { suffix: 'Requests' }) // plugin-cypress, plugin-mcp
331
331
  * ```
332
332
  */
333
333
  function createGroupConfig(group, options) {
@@ -338,7 +338,7 @@ function createGroupConfig(group, options) {
338
338
  };
339
339
  return {
340
340
  ...group,
341
- name: options.honorName && group.name ? group.name : defaultName
341
+ name: group.name ? group.name : defaultName
342
342
  };
343
343
  }
344
344
  //#endregion