@postman/sdk-config 0.15.0 → 0.16.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/dist/index.cjs CHANGED
@@ -2566,7 +2566,9 @@ var goGenerationConfigSchema = zod.z.strictObject({
2566
2566
  /** Overrides the fern root-client constructor independently from the client type name. */
2567
2567
  clientConstructorName: nonEmptyStringSchema.optional().describe("The generated root-client constructor name."),
2568
2568
  unionVersion: zod.z.enum(["v0", "v1"]).optional().describe("The representation used for generated Go unions."),
2569
- includeLegacyClientOptions: zod.z.boolean().optional().describe("Whether the client retains legacy constructor option helpers.")
2569
+ includeLegacyClientOptions: zod.z.boolean().optional().describe("Whether the client retains legacy constructor option helpers."),
2570
+ /** `root` keeps Fern's layout; `types` moves the schema types into a `types` subpackage. */
2571
+ packageLayout: zod.z.enum(["root", "types"]).optional().describe("Where the generated Go schema types are declared.")
2570
2572
  });
2571
2573
  var jvmGenerationConfigSchema = zod.z.strictObject({
2572
2574
  packageLayout: zod.z.enum(["flat", "nested"]).optional().describe("Whether generated JVM packages use a flat or nested resource layout."),
@@ -3739,7 +3741,10 @@ function mapGo(config, state, packageConfig, basePath) {
3739
3741
  state,
3740
3742
  basePath
3741
3743
  ),
3742
- clientConstructorName: takeString(config, ["clientConstructorName"], state, basePath)
3744
+ clientConstructorName: takeString(config, ["clientConstructorName"], state, basePath),
3745
+ // One alias covers every spelling: `locate` compares through `normalizeKey`, which strips `-`
3746
+ // and `_` and lowercases, so `package-layout` in generators.yml matches too.
3747
+ packageLayout: takeEnum(config, ["packageLayout"], ["root", "types"], state, basePath)
3743
3748
  });
3744
3749
  }
3745
3750
  function mapCsharp(config, state, packageConfig, basePath) {