@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
|
@@ -2554,7 +2554,9 @@ var goGenerationConfigSchema = zod.z.strictObject({
|
|
|
2554
2554
|
/** Overrides the fern root-client constructor independently from the client type name. */
|
|
2555
2555
|
clientConstructorName: nonEmptyStringSchema.optional().describe("The generated root-client constructor name."),
|
|
2556
2556
|
unionVersion: zod.z.enum(["v0", "v1"]).optional().describe("The representation used for generated Go unions."),
|
|
2557
|
-
includeLegacyClientOptions: zod.z.boolean().optional().describe("Whether the client retains legacy constructor option helpers.")
|
|
2557
|
+
includeLegacyClientOptions: zod.z.boolean().optional().describe("Whether the client retains legacy constructor option helpers."),
|
|
2558
|
+
/** `root` keeps Fern's layout; `types` moves the schema types into a `types` subpackage. */
|
|
2559
|
+
packageLayout: zod.z.enum(["root", "types"]).optional().describe("Where the generated Go schema types are declared.")
|
|
2558
2560
|
});
|
|
2559
2561
|
var jvmGenerationConfigSchema = zod.z.strictObject({
|
|
2560
2562
|
packageLayout: zod.z.enum(["flat", "nested"]).optional().describe("Whether generated JVM packages use a flat or nested resource layout."),
|
|
@@ -3727,7 +3729,10 @@ function mapGo(config, state, packageConfig, basePath) {
|
|
|
3727
3729
|
state,
|
|
3728
3730
|
basePath
|
|
3729
3731
|
),
|
|
3730
|
-
clientConstructorName: takeString(config, ["clientConstructorName"], state, basePath)
|
|
3732
|
+
clientConstructorName: takeString(config, ["clientConstructorName"], state, basePath),
|
|
3733
|
+
// One alias covers every spelling: `locate` compares through `normalizeKey`, which strips `-`
|
|
3734
|
+
// and `_` and lowercases, so `package-layout` in generators.yml matches too.
|
|
3735
|
+
packageLayout: takeEnum(config, ["packageLayout"], ["root", "types"], state, basePath)
|
|
3731
3736
|
});
|
|
3732
3737
|
}
|
|
3733
3738
|
function mapCsharp(config, state, packageConfig, basePath) {
|