@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 +7 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/sdk-config/index.cjs +7 -2
- package/dist/sdk-config/index.cjs.map +1 -1
- package/dist/sdk-config/index.d.cts +1 -1
- package/dist/sdk-config/index.d.ts +1 -1
- package/dist/sdk-config/index.js +7 -2
- package/dist/sdk-config/index.js.map +1 -1
- package/dist/sdk-config/v1/index.cjs +7 -2
- package/dist/sdk-config/v1/index.cjs.map +1 -1
- package/dist/sdk-config/v1/index.d.cts +10 -2
- package/dist/sdk-config/v1/index.d.ts +10 -2
- package/dist/sdk-config/v1/index.js +7 -2
- package/dist/sdk-config/v1/index.js.map +1 -1
- package/dist/sdk-config-ir/index.cjs +3 -1
- package/dist/sdk-config-ir/index.cjs.map +1 -1
- package/dist/sdk-config-ir/index.d.cts +1 -1
- package/dist/sdk-config-ir/index.d.ts +1 -1
- package/dist/sdk-config-ir/index.js +3 -1
- package/dist/sdk-config-ir/index.js.map +1 -1
- package/dist/sdk-config-ir/v1/index.cjs +3 -1
- package/dist/sdk-config-ir/v1/index.cjs.map +1 -1
- package/dist/sdk-config-ir/v1/index.d.cts +14 -2
- package/dist/sdk-config-ir/v1/index.d.ts +14 -2
- package/dist/sdk-config-ir/v1/index.js +3 -1
- package/dist/sdk-config-ir/v1/index.js.map +1 -1
- package/dist/{typescript-sGNHFomT.d.cts → typescript-Cc50beVo.d.cts} +5 -0
- package/dist/{typescript-sGNHFomT.d.ts → typescript-Cc50beVo.d.ts} +5 -0
- package/package.json +1 -1
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) {
|