diff --git a/generators/browser-compatible-base/src/dynamic-snippets/AbstractDynamicSnippetsGeneratorContext.ts b/generators/browser-compatible-base/src/dynamic-snippets/AbstractDynamicSnippetsGeneratorContext.ts index eb4c51c63f35..30b95a32c563 100644 --- a/generators/browser-compatible-base/src/dynamic-snippets/AbstractDynamicSnippetsGeneratorContext.ts +++ b/generators/browser-compatible-base/src/dynamic-snippets/AbstractDynamicSnippetsGeneratorContext.ts @@ -116,26 +116,21 @@ export abstract class AbstractDynamicSnippetsGeneratorContext { values: FernIr.dynamic.Values; ignoreMissingParameters?: boolean; }): TypeInstance[] { + // Iterate `parameters` (IR / SDK signature order) rather than the input `values` object so + // that callers which rely on argument order — notably positional path parameters in + // generated snippets — produce output that matches the SDK signature. Input key order is + // not guaranteed to match the SDK order (e.g. it may be alphabetical from the source spec). const instances: TypeInstance[] = []; - for (const [key, value] of Object.entries(values)) { + const matchedWireValues = new Set(); + for (const parameter of parameters) { + const wireValue = parameter.name.wireValue; + const value = values[wireValue]; if (value === undefined) { continue; } - this.errors.scope(key); + matchedWireValues.add(wireValue); + this.errors.scope(wireValue); try { - const parameter = parameters.find((param) => param.name.wireValue === key); - if (parameter == null) { - if (ignoreMissingParameters) { - // Required for request payloads that include more information than - // just the target parameters (e.g. union base properties). - continue; - } - this.errors.add({ - severity: Severity.Critical, - message: this.newParameterNotRecognizedError(key).message - }); - continue; - } instances.push({ name: parameter.name, typeReference: parameter.typeReference, @@ -145,6 +140,22 @@ export abstract class AbstractDynamicSnippetsGeneratorContext { this.errors.unscope(); } } + if (!ignoreMissingParameters) { + for (const [key, value] of Object.entries(values)) { + if (value === undefined || matchedWireValues.has(key)) { + continue; + } + this.errors.scope(key); + try { + this.errors.add({ + severity: Severity.Critical, + message: this.newParameterNotRecognizedError(key).message + }); + } finally { + this.errors.unscope(); + } + } + } return instances; } diff --git a/generators/browser-compatible-base/src/dynamic-snippets/test-utils/DynamicSnippetsTestRunner.ts b/generators/browser-compatible-base/src/dynamic-snippets/test-utils/DynamicSnippetsTestRunner.ts index 4ccdbe0b1f90..e3144ccf81f4 100644 --- a/generators/browser-compatible-base/src/dynamic-snippets/test-utils/DynamicSnippetsTestRunner.ts +++ b/generators/browser-compatible-base/src/dynamic-snippets/test-utils/DynamicSnippetsTestRunner.ts @@ -38,6 +38,7 @@ export class DynamicSnippetsTestRunner { this.runImdbTests(args); this.runMultiUrlEnvironmentTests(args); this.runNullableTests(args); + this.runPathParametersTests(args); this.runReadWriteOnlyTests(args); this.runRequiredHeadersTests(args); this.runSingleUrlEnvironmentDefaultTests(args); @@ -926,6 +927,43 @@ export class DynamicSnippetsTestRunner { }); } + private runPathParametersTests(args: DynamicSnippetsTestRunner.Args): void { + const generator = args.buildGenerator({ + irFilepath: AbsoluteFilePath.of(join(DYNAMIC_IR_TEST_DEFINITIONS_DIRECTORY, "path-parameters.json")) + }); + this.runDynamicSnippetTests({ + fixture: "path-parameters", + generator, + testCases: [ + { + // Regression test for FER-10546: path-parameter arguments must render in IR + // (SDK signature / URL) order even when the input `pathParameters` object + // supplies them in a different order (here: alphabetical). + description: + "GET /{tenant_id}/user/{user_id}/specifics/{version}/{thought} (alphabetical input order)", + giveRequest: { + endpoint: { + method: "GET", + path: "/{tenant_id}/user/{user_id}/specifics/{version}/{thought}" + }, + baseURL: undefined, + environment: undefined, + auth: undefined, + pathParameters: { + tenant_id: "my_tenant", + thought: "my_thought", + user_id: "my_user", + version: 7 + }, + queryParameters: undefined, + headers: undefined, + requestBody: undefined + } + } + ] + }); + } + private runDynamicSnippetTests(testSuite: DynamicSnippetsTestRunner.TestSuite) { describe(testSuite.fixture, () => { test.each(testSuite.testCases)("$description", async ({ giveRequest }) => { diff --git a/generators/csharp/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap b/generators/csharp/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap index b6884c3756a7..11479a34f990 100644 --- a/generators/csharp/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap +++ b/generators/csharp/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap @@ -58,17 +58,10 @@ var client = new AcmeClient( await client.Service.CreateBigEntityAsync( new BigEntity { CastMember = new Actor { - ID = "john.doe", - Name = "John Doe" + Name = "John Doe", + ID = "john.doe" }, ExtendedMovie = new ExtendedMovie { - Cast = new List(){ - "John Travolta", - "Samuel L. Jackson", - "Uma Thurman", - "Bruce Willis", - } - , ID = "movie-sda231x", Title = "Pulp Fiction", From = "Quentin Tarantino", @@ -86,7 +79,14 @@ await client.Service.CreateBigEntityAsync( , } , - Revenue = 1000000L + Revenue = 1000000L, + Cast = new List(){ + "John Travolta", + "Samuel L. Jackson", + "Uma Thurman", + "Bruce Willis", + } + }, EventInfo = new EventInfo( new Metadata { @@ -562,6 +562,23 @@ await client.Nullable.GetUsersAsync( " `; +exports[`snippets (default) > path-parameters > 'GET /{tenant_id}/user/{user_id}/speci…' 1`] = ` +"using Acme; +using Acme.User; + +var client = new AcmeClient(); + +await client.User.GetUserSpecificsAsync( + new GetUserSpecificsRequest { + TenantID = "my_tenant", + UserID = "my_user", + Version = 7, + Thought = "my_thought" + } +); +" +`; + exports[`snippets (default) > read-write-only > 'Body properties' 1`] = ` "using Acme; diff --git a/generators/csharp/sdk/changes/2.66.4/fix-dynamic-snippets-path-parameter-order.yml b/generators/csharp/sdk/changes/2.66.4/fix-dynamic-snippets-path-parameter-order.yml new file mode 100644 index 000000000000..27422f27bb76 --- /dev/null +++ b/generators/csharp/sdk/changes/2.66.4/fix-dynamic-snippets-path-parameter-order.yml @@ -0,0 +1,8 @@ +# yaml-language-server: $schema=../../../../../fern-changes-yml.schema.json + +- summary: | + Dynamic snippets now render path-parameter arguments in IR (URL / SDK signature) order + rather than in the order they happen to appear in the input request, so generated + examples line up with the actual SDK method signature even when the spec lists path + parameters in a different order. + type: fix diff --git a/generators/csharp/sdk/versions.yml b/generators/csharp/sdk/versions.yml index 475a9f97fffb..5104ac16298f 100644 --- a/generators/csharp/sdk/versions.yml +++ b/generators/csharp/sdk/versions.yml @@ -1,4 +1,14 @@ # yaml-language-server: $schema=../../../fern-versions-yml.schema.json +- version: 2.66.4 + changelogEntry: + - summary: | + Dynamic snippets now render path-parameter arguments in IR (URL / SDK signature) order + rather than in the order they happen to appear in the input request, so generated + examples line up with the actual SDK method signature even when the spec lists path + parameters in a different order. + type: fix + createdAt: "2026-05-15" + irVersion: 66 - version: 2.66.3 changelogEntry: - summary: | diff --git a/generators/go-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap b/generators/go-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap index e3951b3b8360..309aa31ee7c4 100644 --- a/generators/go-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap +++ b/generators/go-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap @@ -96,17 +96,11 @@ func do() { request := &acme.BigEntity{ CastMember: &acme.CastMember{ Actor: &acme.Actor{ - ID: "john.doe", Name: "John Doe", + ID: "john.doe", }, }, ExtendedMovie: &acme.ExtendedMovie{ - Cast: []string{ - "John Travolta", - "Samuel L. Jackson", - "Uma Thurman", - "Bruce Willis", - }, ID: "movie-sda231x", Title: "Pulp Fiction", From: "Quentin Tarantino", @@ -121,6 +115,12 @@ func do() { "releaseDate": "2023-12-08", }, Revenue: int64(1000000), + Cast: []string{ + "John Travolta", + "Samuel L. Jackson", + "Uma Thurman", + "Bruce Willis", + }, }, EventInfo: &commons.EventInfo{ Metadata: &commons.Metadata{ @@ -751,6 +751,32 @@ func do() { " `; +exports[`snippets (default) > path-parameters > 'GET /{tenant_id}/user/{user_id}/speci…' 1`] = ` +"package example + +import ( + context "context" + + acme "github.com/acme/acme-go" + client "github.com/acme/acme-go/client" +) + +func do() { + client := client.NewClient() + request := &acme.GetUserSpecificsRequest{ + TenantID: "my_tenant", + UserID: "my_user", + Version: 7, + Thought: "my_thought", + } + client.User.GetUserSpecifics( + context.TODO(), + request, + ) +} +" +`; + exports[`snippets (default) > read-write-only > 'Body properties' 1`] = ` "package example @@ -1072,17 +1098,11 @@ func do() { request := &acme.BigEntity{ CastMember: &acme.CastMember{ Actor: &acme.Actor{ - ID: "john.doe", Name: "John Doe", + ID: "john.doe", }, }, ExtendedMovie: &acme.ExtendedMovie{ - Cast: []string{ - "John Travolta", - "Samuel L. Jackson", - "Uma Thurman", - "Bruce Willis", - }, ID: "movie-sda231x", Title: "Pulp Fiction", From: "Quentin Tarantino", @@ -1097,6 +1117,12 @@ func do() { "releaseDate": "2023-12-08", }, Revenue: int64(1000000), + Cast: []string{ + "John Travolta", + "Samuel L. Jackson", + "Uma Thurman", + "Bruce Willis", + }, }, EventInfo: &commons.EventInfo{ Metadata: &commons.Metadata{ @@ -1727,6 +1753,32 @@ func do() { " `; +exports[`snippets (exportAllRequestsAtRoot) > path-parameters > 'GET /{tenant_id}/user/{user_id}/speci…' 1`] = ` +"package example + +import ( + context "context" + + acme "github.com/acme/acme-go" + client "github.com/acme/acme-go/client" +) + +func do() { + client := client.NewClient() + request := &acme.GetUserSpecificsRequest{ + TenantID: "my_tenant", + UserID: "my_user", + Version: 7, + Thought: "my_thought", + } + client.User.GetUserSpecifics( + context.TODO(), + request, + ) +} +" +`; + exports[`snippets (exportAllRequestsAtRoot) > read-write-only > 'Body properties' 1`] = ` "package example @@ -2048,17 +2100,11 @@ func do() { request := &acme.BigEntity{ CastMember: &acme.CastMember{ Actor: &acme.Actor{ - ID: "john.doe", Name: "John Doe", + ID: "john.doe", }, }, ExtendedMovie: &acme.ExtendedMovie{ - Cast: []string{ - "John Travolta", - "Samuel L. Jackson", - "Uma Thurman", - "Bruce Willis", - }, ID: "movie-sda231x", Title: "Pulp Fiction", From: "Quentin Tarantino", @@ -2073,6 +2119,12 @@ func do() { "releaseDate": "2023-12-08", }, Revenue: int64(1000000), + Cast: []string{ + "John Travolta", + "Samuel L. Jackson", + "Uma Thurman", + "Bruce Willis", + }, }, EventInfo: &commons.EventInfo{ Metadata: &commons.Metadata{ @@ -2703,6 +2755,32 @@ func do() { " `; +exports[`snippets (exportedClientName) > path-parameters > 'GET /{tenant_id}/user/{user_id}/speci…' 1`] = ` +"package example + +import ( + context "context" + + acme "github.com/acme/acme-go" + client "github.com/acme/acme-go/client" +) + +func do() { + client := client.NewFernClient() + request := &acme.GetUserSpecificsRequest{ + TenantID: "my_tenant", + UserID: "my_user", + Version: 7, + Thought: "my_thought", + } + client.User.GetUserSpecifics( + context.TODO(), + request, + ) +} +" +`; + exports[`snippets (exportedClientName) > read-write-only > 'Body properties' 1`] = ` "package example diff --git a/generators/go/sdk/changes/1.41.4/fix-dynamic-snippets-path-parameter-order.yml b/generators/go/sdk/changes/1.41.4/fix-dynamic-snippets-path-parameter-order.yml new file mode 100644 index 000000000000..27422f27bb76 --- /dev/null +++ b/generators/go/sdk/changes/1.41.4/fix-dynamic-snippets-path-parameter-order.yml @@ -0,0 +1,8 @@ +# yaml-language-server: $schema=../../../../../fern-changes-yml.schema.json + +- summary: | + Dynamic snippets now render path-parameter arguments in IR (URL / SDK signature) order + rather than in the order they happen to appear in the input request, so generated + examples line up with the actual SDK method signature even when the spec lists path + parameters in a different order. + type: fix diff --git a/generators/go/sdk/versions.yml b/generators/go/sdk/versions.yml index 52bfa0734379..635800cfa6e4 100644 --- a/generators/go/sdk/versions.yml +++ b/generators/go/sdk/versions.yml @@ -1,4 +1,14 @@ # yaml-language-server: $schema=../../../fern-versions-yml.schema.json +- version: 1.41.4 + changelogEntry: + - summary: | + Dynamic snippets now render path-parameter arguments in IR (URL / SDK signature) order + rather than in the order they happen to appear in the input request, so generated + examples line up with the actual SDK method signature even when the spec lists path + parameters in a different order. + type: fix + createdAt: "2026-05-15" + irVersion: 66 - version: 1.41.3 changelogEntry: - summary: | diff --git a/generators/java-v2/dynamic-snippets/src/EndpointSnippetGenerator.ts b/generators/java-v2/dynamic-snippets/src/EndpointSnippetGenerator.ts index db1fe7804a2f..d1063b30695a 100644 --- a/generators/java-v2/dynamic-snippets/src/EndpointSnippetGenerator.ts +++ b/generators/java-v2/dynamic-snippets/src/EndpointSnippetGenerator.ts @@ -1031,7 +1031,8 @@ export class EndpointSnippetGenerator { const args: java.BuilderParameter[] = []; const pathParameters = this.context.associateByWireValue({ parameters: namedParameters, - values: snippet.pathParameters ?? {} + values: snippet.pathParameters ?? {}, + ignoreMissingParameters: true }); for (const parameter of pathParameters) { args.push({ diff --git a/generators/java-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap b/generators/java-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap index d98c93faa9dc..68752d6b7f88 100644 --- a/generators/java-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap +++ b/generators/java-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap @@ -619,6 +619,28 @@ exports[`snippets (default) > nullable > 'Query parameters' 1`] = ` ]" `; +exports[`snippets (default) > path-parameters > 'GET /{tenant_id}/user/{user_id}/speci…' 1`] = ` +"package com.example.usage; + +import com.acme.acme.AcmeAcmeClient; +import com.acme.acme.types.GetUserSpecificsRequest; + +AcmeAcmeClient client = AcmeAcmeClient + .builder() + .tenantID("my_tenant") + .build(); + +client.user().getUserSpecifics( + "my_user", + 7, + "my_thought", + GetUserSpecificsRequest + .builder() + .build() +); +" +`; + exports[`snippets (default) > read-write-only > 'Body properties' 1`] = ` "package com.example.usage; diff --git a/generators/java/sdk/changes/4.8.8/fix-dynamic-snippets-path-parameter-order.yml b/generators/java/sdk/changes/4.8.8/fix-dynamic-snippets-path-parameter-order.yml new file mode 100644 index 000000000000..ca69f9815550 --- /dev/null +++ b/generators/java/sdk/changes/4.8.8/fix-dynamic-snippets-path-parameter-order.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../../../fern-changes-yml.schema.json + +- summary: | + Dynamic snippets now render path-parameter arguments in IR (URL / SDK signature) order + rather than in the order they happen to appear in the input request, so generated + examples line up with the actual SDK method signature even when the spec lists path + parameters in a different order. Also fixes spurious "not recognized" errors that + were raised for endpoint-level path parameters when both top-level and endpoint-level + path parameters were supplied. + type: fix diff --git a/generators/java/sdk/versions.yml b/generators/java/sdk/versions.yml index 3650dbc75b69..ae3ec9a1f448 100644 --- a/generators/java/sdk/versions.yml +++ b/generators/java/sdk/versions.yml @@ -1,4 +1,16 @@ # yaml-language-server: $schema=../../../fern-versions-yml.schema.json +- version: 4.8.8 + changelogEntry: + - summary: | + Dynamic snippets now render path-parameter arguments in IR (URL / SDK signature) order + rather than in the order they happen to appear in the input request, so generated + examples line up with the actual SDK method signature even when the spec lists path + parameters in a different order. Also fixes spurious "not recognized" errors that + were raised for endpoint-level path parameters when both top-level and endpoint-level + path parameters were supplied. + type: fix + createdAt: "2026-05-15" + irVersion: 66 - version: 4.8.7 changelogEntry: - summary: | diff --git a/generators/php/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap b/generators/php/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap index 2995f33be12d..edea2cda87f9 100644 --- a/generators/php/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap +++ b/generators/php/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap @@ -67,16 +67,10 @@ $client = new AcmeClient( $client->service->createBigEntity( new BigEntity([ 'castMember' => new Actor([ - 'id' => 'john.doe', 'name' => 'John Doe', + 'id' => 'john.doe', ]), 'extendedMovie' => new ExtendedMovie([ - 'cast' => [ - 'John Travolta', - 'Samuel L. Jackson', - 'Uma Thurman', - 'Bruce Willis', - ], 'id' => 'movie-sda231x', 'title' => 'Pulp Fiction', 'from' => 'Quentin Tarantino', @@ -92,6 +86,12 @@ $client->service->createBigEntity( ], ], 'revenue' => 1000000, + 'cast' => [ + 'John Travolta', + 'Samuel L. Jackson', + 'Uma Thurman', + 'Bruce Willis', + ], ]), 'eventInfo' => EventInfo::metadata(new Metadata([ 'id' => 'event-12345', @@ -563,6 +563,23 @@ $client->nullable->getUsers( " `; +exports[`snippets (default) > path-parameters > 'GET /{tenant_id}/user/{user_id}/speci…' 1`] = ` +"user->getUserSpecifics( + 'my_tenant', + 'my_user', + 7, + 'my_thought', +); +" +`; + exports[`snippets (default) > read-write-only > 'Body properties' 1`] = ` " 0) { + pathParameterFields.push(...this.getPathParameters({ namedParameters: pathParameters, snippet })); } this.context.errors.unscope(); diff --git a/generators/python-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap b/generators/python-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap index e7282cfc891e..36d7e58bfd17 100644 --- a/generators/python-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap +++ b/generators/python-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap @@ -44,16 +44,10 @@ client = Acme( client.service.create_big_entity( cast_member={ - "id": "john.doe", - "name": "John Doe" + "name": "John Doe", + "id": "john.doe" }, extended_movie={ - "cast": [ - "John Travolta", - "Samuel L. Jackson", - "Uma Thurman", - "Bruce Willis" - ], "id": "movie-sda231x", "title": "Pulp Fiction", "from": "Quentin Tarantino", @@ -65,7 +59,13 @@ client.service.create_big_entity( "releaseDate": "2023-12-08", "ratings": {"rottenTomatoes": 97, "imdb": 7.6} }, - "revenue": 1000000 + "revenue": 1000000, + "cast": [ + "John Travolta", + "Samuel L. Jackson", + "Uma Thurman", + "Bruce Willis" + ] }, event_info={ "type": "metadata", @@ -466,6 +466,20 @@ client.nullable.get_users( " `; +exports[`snippets (use_typeddict_requests) > path-parameters > 'GET /{tenant_id}/user/{user_id}/speci…' 1`] = ` +"from acme import Acme + +client = Acme() + +client.user.get_user_specifics( + tenant_id="my_tenant", + user_id="my_user", + version=7, + thought="my_thought", +) +" +`; + exports[`snippets (use_typeddict_requests) > read-write-only > 'Body properties' 1`] = ` "from acme import Acme @@ -638,16 +652,10 @@ client = Acme( client.service.create_big_entity( cast_member=Actor( - id="john.doe", name="John Doe", + id="john.doe", ), extended_movie=ExtendedMovie( - cast=[ - "John Travolta", - "Samuel L. Jackson", - "Uma Thurman", - "Bruce Willis" - ], id="movie-sda231x", title="Pulp Fiction", from="Quentin Tarantino", @@ -660,6 +668,12 @@ client.service.create_big_entity( "ratings": {"rottenTomatoes": 97, "imdb": 7.6} }, revenue=1000000, + cast=[ + "John Travolta", + "Samuel L. Jackson", + "Uma Thurman", + "Bruce Willis" + ], ), event_info=EventInfo_Metadata( id="event-12345", @@ -1061,6 +1075,20 @@ client.nullable.get_users( " `; +exports[`snippets > path-parameters > 'GET /{tenant_id}/user/{user_id}/speci…' 1`] = ` +"from acme import Acme + +client = Acme() + +client.user.get_user_specifics( + tenant_id="my_tenant", + user_id="my_user", + version=7, + thought="my_thought", +) +" +`; + exports[`snippets > read-write-only > 'Body properties' 1`] = ` "from acme import Acme, UserProfile, UserProfileVerification diff --git a/generators/python/sdk/changes/5.12.10/fix-dynamic-snippets-path-parameter-order.yml b/generators/python/sdk/changes/5.12.10/fix-dynamic-snippets-path-parameter-order.yml new file mode 100644 index 000000000000..75f88939b01b --- /dev/null +++ b/generators/python/sdk/changes/5.12.10/fix-dynamic-snippets-path-parameter-order.yml @@ -0,0 +1,14 @@ +# yaml-language-server: $schema=../../../../../fern-changes-yml.schema.json + +- summary: | + Dynamic snippets now render path-parameter arguments in IR (URL / SDK signature) order + rather than in the order they happen to appear in the input request, so generated + examples line up with the actual SDK method signature even when the spec lists path + parameters in a different order. + type: fix +- summary: | + Dynamic snippets now pass root-level path parameters to the endpoint method instead + of the client constructor (which does not accept them), and include them alongside + endpoint-level path parameters so the rendered call matches the generated Python SDK + method signature. + type: fix diff --git a/generators/python/sdk/versions.yml b/generators/python/sdk/versions.yml index b30a6ff67d82..682f6ce00058 100644 --- a/generators/python/sdk/versions.yml +++ b/generators/python/sdk/versions.yml @@ -1,4 +1,20 @@ # yaml-language-server: $schema=../../../fern-versions-yml.schema.json +- version: 5.12.10 + changelogEntry: + - summary: | + Dynamic snippets now render path-parameter arguments in IR (URL / SDK signature) order + rather than in the order they happen to appear in the input request, so generated + examples line up with the actual SDK method signature even when the spec lists path + parameters in a different order. + type: fix + - summary: | + Dynamic snippets now pass root-level path parameters to the endpoint method instead + of the client constructor (which does not accept them), and include them alongside + endpoint-level path parameters so the rendered call matches the generated Python SDK + method signature. + type: fix + createdAt: "2026-05-15" + irVersion: 66 - version: 5.12.9 changelogEntry: - summary: | diff --git a/generators/ruby-v2/dynamic-snippets/src/EndpointSnippetGenerator.ts b/generators/ruby-v2/dynamic-snippets/src/EndpointSnippetGenerator.ts index c6a966c0961d..865672816bef 100644 --- a/generators/ruby-v2/dynamic-snippets/src/EndpointSnippetGenerator.ts +++ b/generators/ruby-v2/dynamic-snippets/src/EndpointSnippetGenerator.ts @@ -510,10 +510,14 @@ export class EndpointSnippetGenerator { }): ruby.KeywordArgument[] { const args: ruby.KeywordArgument[] = []; + // Generated Ruby SDKs surface both root-level and endpoint-level path parameters + // as keyword arguments on the endpoint method (via `**params`), so merge them here + // in IR / URL order before rendering. + const pathParameters = [...(this.context.ir.pathParameters ?? []), ...(request.pathParameters ?? [])]; args.push( ...this.getNamedParameterArgs({ kind: "PathParameters", - namedParameters: request.pathParameters, + namedParameters: pathParameters, values: snippet.pathParameters }) ); @@ -668,11 +672,14 @@ export class EndpointSnippetGenerator { }): ruby.KeywordArgument[] { const args: ruby.KeywordArgument[] = []; - // Add path parameters as keyword arguments (Ruby SDK uses **params) + // Add path parameters as keyword arguments (Ruby SDK uses **params). + // Merge root-level and endpoint-level path params in IR / URL order so + // root-level parameters (e.g. tenant_id) are not dropped from the call. + const pathParameters = [...(this.context.ir.pathParameters ?? []), ...(request.pathParameters ?? [])]; args.push( ...this.getNamedParameterArgs({ kind: "PathParameters", - namedParameters: request.pathParameters, + namedParameters: pathParameters, values: snippet.pathParameters }) ); diff --git a/generators/ruby-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap b/generators/ruby-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap index d6c03e89163f..15ee38be38a8 100644 --- a/generators/ruby-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap +++ b/generators/ruby-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap @@ -191,8 +191,8 @@ exports[`snippets (default) > file-upload > 'POST /just-file-with-query-params' client = Acme::Client.new client.service.just_file_with_query_params( - integer: 42, - maybe_string: "exists" + maybe_string: "exists", + integer: 42 ) " `; @@ -314,6 +314,20 @@ client.nullable.get_users( " `; +exports[`snippets (default) > path-parameters > 'GET /{tenant_id}/user/{user_id}/speci…' 1`] = ` +"require "acme" + +client = Acme::Client.new + +client.user.get_user_specifics( + tenant_id: "my_tenant", + user_id: "my_user", + version: 7, + thought: "my_thought" +) +" +`; + exports[`snippets (default) > read-write-only > 'Body properties' 1`] = ` "require "acme" diff --git a/generators/ruby-v2/sdk/changes/1.12.11/fix-dynamic-snippets-path-parameter-order.yml b/generators/ruby-v2/sdk/changes/1.12.11/fix-dynamic-snippets-path-parameter-order.yml new file mode 100644 index 000000000000..27422f27bb76 --- /dev/null +++ b/generators/ruby-v2/sdk/changes/1.12.11/fix-dynamic-snippets-path-parameter-order.yml @@ -0,0 +1,8 @@ +# yaml-language-server: $schema=../../../../../fern-changes-yml.schema.json + +- summary: | + Dynamic snippets now render path-parameter arguments in IR (URL / SDK signature) order + rather than in the order they happen to appear in the input request, so generated + examples line up with the actual SDK method signature even when the spec lists path + parameters in a different order. + type: fix diff --git a/generators/ruby-v2/sdk/versions.yml b/generators/ruby-v2/sdk/versions.yml index c20ad5eeb7b3..06d25e16fbcb 100644 --- a/generators/ruby-v2/sdk/versions.yml +++ b/generators/ruby-v2/sdk/versions.yml @@ -1,4 +1,14 @@ # yaml-language-server: $schema=../../../fern-versions-yml.schema.json +- version: 1.12.11 + changelogEntry: + - summary: | + Dynamic snippets now render path-parameter arguments in IR (URL / SDK signature) order + rather than in the order they happen to appear in the input request, so generated + examples line up with the actual SDK method signature even when the spec lists path + parameters in a different order. + type: fix + createdAt: "2026-05-15" + irVersion: 66 - version: 1.12.10 changelogEntry: - summary: | diff --git a/generators/swift/dynamic-snippets/src/EndpointSnippetGenerator.ts b/generators/swift/dynamic-snippets/src/EndpointSnippetGenerator.ts index 92bfbc401e29..42789db53cec 100644 --- a/generators/swift/dynamic-snippets/src/EndpointSnippetGenerator.ts +++ b/generators/swift/dynamic-snippets/src/EndpointSnippetGenerator.ts @@ -388,11 +388,15 @@ export class EndpointSnippetGenerator { }): swift.FunctionArgument[] { const args: swift.FunctionArgument[] = []; this.context.errors.scope(Scope.PathParameters); + // Generated Swift SDKs surface both root-level and endpoint-level path parameters + // as labelled arguments on the endpoint method, so merge them here in IR / URL + // order before rendering (mirroring `getEndpointMethodArgsForBodyRequest`). + const pathParameters = [...(this.context.ir.pathParameters ?? []), ...(request.pathParameters ?? [])]; const pathParameterFields: swift.FunctionArgument[] = []; - if (request.pathParameters != null) { + if (pathParameters.length > 0) { pathParameterFields.push( ...this.getEndpointMethodPathParameters({ - namedParameters: request.pathParameters, + namedParameters: pathParameters, snippet }) ); @@ -452,7 +456,6 @@ export class EndpointSnippetGenerator { namedParameters: FernIr.dynamic.NamedParameter[]; snippet: FernIr.dynamic.EndpointSnippetRequest; }): swift.FunctionArgument[] { - const moduleSymbol = this.context.nameRegistry.getRegisteredSourceModuleSymbolOrThrow(); return this.context .getExampleObjectProperties({ parameters: namedParameters, @@ -461,15 +464,31 @@ export class EndpointSnippetGenerator { .map((parameter) => { return swift.functionArgument({ label: parameter.name.name.camelCase.unsafeName, - value: this.context.dynamicTypeLiteralMapper.convert({ - fromSymbol: moduleSymbol, - typeReference: parameter.typeReference, - value: parameter.value - }) + // Generated Swift SDKs declare every path parameter as `String` in + // the endpoint method signature (the value is interpolated into the + // URL string), so render non-string primitive literals as their + // String representation here to keep the rendered snippet's + // argument type compatible with the SDK signature. + value: this.renderPathParameterValueAsSwiftString({ value: parameter.value }) }); }); } + private renderPathParameterValueAsSwiftString({ value }: { value: unknown }): swift.Expression { + if (typeof value === "string") { + return swift.Expression.escapedStringLiteral(value); + } + if (typeof value === "number" || typeof value === "boolean" || typeof value === "bigint") { + return swift.Expression.escapedStringLiteral(String(value)); + } + if (value == null) { + return swift.Expression.nop(); + } + // Fallback: serialize unexpected shapes as JSON so the rendered argument + // remains a String literal that matches the SDK signature. + return swift.Expression.escapedStringLiteral(JSON.stringify(value)); + } + private getEndpointMethodQueryParameters({ namedParameters, snippet @@ -645,7 +664,6 @@ export class EndpointSnippetGenerator { snippet: FernIr.dynamic.EndpointSnippetRequest; }): swift.FunctionArgument[] { const args: swift.FunctionArgument[] = []; - const moduleSymbol = this.context.nameRegistry.getRegisteredSourceModuleSymbolOrThrow(); this.context.errors.scope(Scope.PathParameters); const pathParameters = [...(this.context.ir.pathParameters ?? []), ...(request.pathParameters ?? [])]; if (pathParameters.length > 0) { diff --git a/generators/swift/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap b/generators/swift/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap index d21631d7a075..8a2d376eb918 100644 --- a/generators/swift/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap +++ b/generators/swift/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap @@ -473,6 +473,25 @@ try await main() " `; +exports[`snippets (default) > path-parameters > 'GET /{tenant_id}/user/{user_id}/speci…' 1`] = ` +"import Foundation +import Acme + +private func main() async throws { + let client = AcmeClient() + + _ = try await client.user.getUserSpecifics( + tenantID: "my_tenant", + userID: "my_user", + version: "7", + thought: "my_thought" + ) +} + +try await main() +" +`; + exports[`snippets (default) > read-write-only > 'Body properties' 1`] = ` "import Foundation import Acme diff --git a/generators/swift/sdk/changes/0.35.8/fix-dynamic-snippets-path-parameter-order.yml b/generators/swift/sdk/changes/0.35.8/fix-dynamic-snippets-path-parameter-order.yml new file mode 100644 index 000000000000..27422f27bb76 --- /dev/null +++ b/generators/swift/sdk/changes/0.35.8/fix-dynamic-snippets-path-parameter-order.yml @@ -0,0 +1,8 @@ +# yaml-language-server: $schema=../../../../../fern-changes-yml.schema.json + +- summary: | + Dynamic snippets now render path-parameter arguments in IR (URL / SDK signature) order + rather than in the order they happen to appear in the input request, so generated + examples line up with the actual SDK method signature even when the spec lists path + parameters in a different order. + type: fix diff --git a/generators/swift/sdk/versions.yml b/generators/swift/sdk/versions.yml index b80215297c3c..bb9b9d8ace0f 100644 --- a/generators/swift/sdk/versions.yml +++ b/generators/swift/sdk/versions.yml @@ -1,4 +1,14 @@ # yaml-language-server: $schema=../../../fern-versions-yml.schema.json +- version: 0.35.8 + changelogEntry: + - summary: | + Dynamic snippets now render path-parameter arguments in IR (URL / SDK signature) order + rather than in the order they happen to appear in the input request, so generated + examples line up with the actual SDK method signature even when the spec lists path + parameters in a different order. + type: fix + createdAt: "2026-05-15" + irVersion: 66 - version: 0.35.7 changelogEntry: - summary: | diff --git a/generators/typescript-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap b/generators/typescript-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap index 6575d9480d22..da0c024a5dc4 100644 --- a/generators/typescript-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap +++ b/generators/typescript-v2/dynamic-snippets/src/__test__/__snapshots__/DynamicSnippetsGenerator.test.ts.snap @@ -48,16 +48,10 @@ async function main() { }); await client.service.createBigEntity({ castMember: { - id: "john.doe", name: "John Doe", + id: "john.doe", }, extendedMovie: { - cast: [ - "John Travolta", - "Samuel L. Jackson", - "Uma Thurman", - "Bruce Willis", - ], id: "movie-sda231x", title: "Pulp Fiction", from: "Quentin Tarantino", @@ -73,6 +67,12 @@ async function main() { }, }, revenue: BigInt("1000000"), + cast: [ + "John Travolta", + "Samuel L. Jackson", + "Uma Thurman", + "Bruce Willis", + ], }, eventInfo: { type: "metadata", @@ -472,6 +472,23 @@ main(); " `; +exports[`snippets > path-parameters > 'GET /{tenant_id}/user/{user_id}/speci…' 1`] = ` +"import { AcmeClient } from "acme"; + +async function main() { + const client = new AcmeClient({ + tenantID: "my_tenant", + }); + await client.user.getUserSpecifics({ + userID: "my_user", + version: 7, + thought: "my_thought", + }); +} +main(); +" +`; + exports[`snippets > read-write-only > 'Body properties' 1`] = ` "import { AcmeClient } from "acme"; diff --git a/generators/typescript/sdk/changes/3.70.7/fix-dynamic-snippets-path-parameter-order.yml b/generators/typescript/sdk/changes/3.70.7/fix-dynamic-snippets-path-parameter-order.yml new file mode 100644 index 000000000000..27422f27bb76 --- /dev/null +++ b/generators/typescript/sdk/changes/3.70.7/fix-dynamic-snippets-path-parameter-order.yml @@ -0,0 +1,8 @@ +# yaml-language-server: $schema=../../../../../fern-changes-yml.schema.json + +- summary: | + Dynamic snippets now render path-parameter arguments in IR (URL / SDK signature) order + rather than in the order they happen to appear in the input request, so generated + examples line up with the actual SDK method signature even when the spec lists path + parameters in a different order. + type: fix diff --git a/generators/typescript/sdk/versions.yml b/generators/typescript/sdk/versions.yml index 9165448dd01b..537e57ae9a51 100644 --- a/generators/typescript/sdk/versions.yml +++ b/generators/typescript/sdk/versions.yml @@ -1,4 +1,14 @@ # yaml-language-server: $schema=../../../fern-versions-yml.schema.json +- version: 3.70.7 + changelogEntry: + - summary: | + Dynamic snippets now render path-parameter arguments in IR (URL / SDK signature) order + rather than in the order they happen to appear in the input request, so generated + examples line up with the actual SDK method signature even when the spec lists path + parameters in a different order. + type: fix + createdAt: "2026-05-15" + irVersion: 66 - version: 3.70.6 changelogEntry: - summary: | diff --git a/packages/cli/cli/changes/unreleased/fix-sentry-false-positive-classification.yml b/packages/cli/cli/changes/5.26.5/fix-sentry-false-positive-classification.yml similarity index 100% rename from packages/cli/cli/changes/unreleased/fix-sentry-false-positive-classification.yml rename to packages/cli/cli/changes/5.26.5/fix-sentry-false-positive-classification.yml diff --git a/packages/cli/cli/versions.yml b/packages/cli/cli/versions.yml index ed54e56c52cc..5052025fbded 100644 --- a/packages/cli/cli/versions.yml +++ b/packages/cli/cli/versions.yml @@ -1,4 +1,11 @@ # yaml-language-server: $schema=../../../fern-versions-yml.schema.json +- version: 5.26.5 + changelogEntry: + - summary: | + Suppress additional Sentry false positives for interrupted syscalls, invalid versions, YAML parse failures, IR schema parse failures, invalid GitHub repository config, replay resolve failures, missing translation directories, and global theme fetch failures. + type: fix + createdAt: "2026-05-15" + irVersion: 66 - version: 5.26.4 changelogEntry: - summary: | diff --git a/seed/csharp-sdk/examples/no-custom-config/Snippets/Example19.cs b/seed/csharp-sdk/examples/no-custom-config/Snippets/Example19.cs index c5c07c978a5a..cbf75bf6f378 100644 --- a/seed/csharp-sdk/examples/no-custom-config/Snippets/Example19.cs +++ b/seed/csharp-sdk/examples/no-custom-config/Snippets/Example19.cs @@ -19,11 +19,6 @@ await client.Service.CreateBigEntityAsync( Id = "id" }, ExtendedMovie = new ExtendedMovie { - Cast = new List(){ - "cast", - "cast", - } - , Id = "id", Prequel = "prequel", Title = "title", @@ -40,7 +35,12 @@ await client.Service.CreateBigEntityAsync( , } , - Revenue = 1000000L + Revenue = 1000000L, + Cast = new List(){ + "cast", + "cast", + } + }, Entity = new Entity { Type = BasicType.Primitive, diff --git a/seed/csharp-sdk/examples/readme-config/Snippets/Example19.cs b/seed/csharp-sdk/examples/readme-config/Snippets/Example19.cs index c5c07c978a5a..cbf75bf6f378 100644 --- a/seed/csharp-sdk/examples/readme-config/Snippets/Example19.cs +++ b/seed/csharp-sdk/examples/readme-config/Snippets/Example19.cs @@ -19,11 +19,6 @@ await client.Service.CreateBigEntityAsync( Id = "id" }, ExtendedMovie = new ExtendedMovie { - Cast = new List(){ - "cast", - "cast", - } - , Id = "id", Prequel = "prequel", Title = "title", @@ -40,7 +35,12 @@ await client.Service.CreateBigEntityAsync( , } , - Revenue = 1000000L + Revenue = 1000000L, + Cast = new List(){ + "cast", + "cast", + } + }, Entity = new Entity { Type = BasicType.Primitive, diff --git a/seed/csharp-sdk/extra-properties/Snippets/Example0.cs b/seed/csharp-sdk/extra-properties/Snippets/Example0.cs index 24e0a646aa54..e278343120bd 100644 --- a/seed/csharp-sdk/extra-properties/Snippets/Example0.cs +++ b/seed/csharp-sdk/extra-properties/Snippets/Example0.cs @@ -11,9 +11,9 @@ public async Task Example0() { await client.User.CreateUserAsync( new CreateUserRequest { - Name = "Alice", Type = "CreateUserRequest", - Version = "v1" + Version = "v1", + Name = "Alice" } ); } diff --git a/seed/csharp-sdk/literal/no-custom-config/Snippets/Example2.cs b/seed/csharp-sdk/literal/no-custom-config/Snippets/Example2.cs index 6b4f5fe8d5b5..6645443b709d 100644 --- a/seed/csharp-sdk/literal/no-custom-config/Snippets/Example2.cs +++ b/seed/csharp-sdk/literal/no-custom-config/Snippets/Example2.cs @@ -11,18 +11,18 @@ public async Task Example2() { await client.Inlined.SendAsync( new SendLiteralsInlinedRequest { - Temperature = 10.1, Prompt = "You are a helpful assistant", Context = "You're super wise", + Query = "What is the weather today", + Temperature = 10.1, + Stream = false, AliasedContext = "You're super wise", MaybeContext = "You're super wise", ObjectWithLiteral = new ATopLevelLiteral { NestedLiteral = new ANestedLiteral { MyLiteral = "How super cool" } - }, - Stream = false, - Query = "What is the weather today" + } } ); } diff --git a/seed/csharp-sdk/literal/no-custom-config/Snippets/Example8.cs b/seed/csharp-sdk/literal/no-custom-config/Snippets/Example8.cs index c231e58c1e00..cc617e9fcd32 100644 --- a/seed/csharp-sdk/literal/no-custom-config/Snippets/Example8.cs +++ b/seed/csharp-sdk/literal/no-custom-config/Snippets/Example8.cs @@ -12,9 +12,9 @@ public async Task Example8() { await client.Reference.SendAsync( new SendRequest { Prompt = "You are a helpful assistant", + Query = "What is the weather today", Stream = false, Context = "You're super wise", - Query = "What is the weather today", ContainerObject = new ContainerObject { NestedObjects = new List(){ new NestedObjectWithLiterals { diff --git a/seed/csharp-sdk/literal/readonly-constants/Snippets/Example2.cs b/seed/csharp-sdk/literal/readonly-constants/Snippets/Example2.cs index ab98fa866353..a62f5dddba01 100644 --- a/seed/csharp-sdk/literal/readonly-constants/Snippets/Example2.cs +++ b/seed/csharp-sdk/literal/readonly-constants/Snippets/Example2.cs @@ -11,13 +11,13 @@ public async Task Example2() { await client.Inlined.SendAsync( new SendLiteralsInlinedRequest { + Query = "What is the weather today", Temperature = 10.1, AliasedContext = new SomeAliasedLiteral(), MaybeContext = new SomeAliasedLiteral(), ObjectWithLiteral = new ATopLevelLiteral { NestedLiteral = new ANestedLiteral() - }, - Query = "What is the weather today" + } } ); } diff --git a/seed/csharp-sdk/literal/readonly-constants/Snippets/Example8.cs b/seed/csharp-sdk/literal/readonly-constants/Snippets/Example8.cs index ed7f8c9917d2..076c3907aaad 100644 --- a/seed/csharp-sdk/literal/readonly-constants/Snippets/Example8.cs +++ b/seed/csharp-sdk/literal/readonly-constants/Snippets/Example8.cs @@ -11,8 +11,8 @@ public async Task Example8() { await client.Reference.SendAsync( new SendRequest { - Context = new SomeLiteral(), Query = "What is the weather today", + Context = new SomeLiteral(), ContainerObject = new ContainerObject { NestedObjects = new List(){ new NestedObjectWithLiterals { diff --git a/seed/csharp-sdk/server-sent-events-openapi/Snippets/Example24.cs b/seed/csharp-sdk/server-sent-events-openapi/Snippets/Example24.cs index 35de32e2113a..6dda200dbf8b 100644 --- a/seed/csharp-sdk/server-sent-events-openapi/Snippets/Example24.cs +++ b/seed/csharp-sdk/server-sent-events-openapi/Snippets/Example24.cs @@ -12,9 +12,9 @@ public async Task Example24() { await foreach (var item in client.StreamXFernStreamingUnionStreamAsync( new StreamXFernStreamingUnionStreamRequest( new UnionStreamMessageVariant { + StreamResponse = true, Prompt = "prompt", - Message = "message", - StreamResponse = true + Message = "message" } ) { StreamResponse = true, diff --git a/seed/csharp-sdk/server-sent-events-openapi/Snippets/Example25.cs b/seed/csharp-sdk/server-sent-events-openapi/Snippets/Example25.cs index 0795b74b5133..3639ec22eca0 100644 --- a/seed/csharp-sdk/server-sent-events-openapi/Snippets/Example25.cs +++ b/seed/csharp-sdk/server-sent-events-openapi/Snippets/Example25.cs @@ -12,9 +12,9 @@ public async Task Example25() { await foreach (var item in client.StreamXFernStreamingUnionStreamAsync( new StreamXFernStreamingUnionStreamRequest( new UnionStreamMessageVariant { - Message = "message", StreamResponse = true, - Prompt = "prompt" + Prompt = "prompt", + Message = "message" } ) { StreamResponse = true, diff --git a/seed/csharp-sdk/server-sent-events-openapi/Snippets/Example26.cs b/seed/csharp-sdk/server-sent-events-openapi/Snippets/Example26.cs index f6bb66a4cd7a..59300fa61d93 100644 --- a/seed/csharp-sdk/server-sent-events-openapi/Snippets/Example26.cs +++ b/seed/csharp-sdk/server-sent-events-openapi/Snippets/Example26.cs @@ -12,9 +12,9 @@ public async Task Example26() { await client.StreamXFernStreamingUnionAsync( new StreamXFernStreamingUnionRequest( new UnionStreamMessageVariant { + StreamResponse = false, Prompt = "prompt", - Message = "message", - StreamResponse = false + Message = "message" } ) { StreamResponse = false, diff --git a/seed/csharp-sdk/server-sent-events-openapi/Snippets/Example27.cs b/seed/csharp-sdk/server-sent-events-openapi/Snippets/Example27.cs index 97887e3d2a0f..fe2ad557161e 100644 --- a/seed/csharp-sdk/server-sent-events-openapi/Snippets/Example27.cs +++ b/seed/csharp-sdk/server-sent-events-openapi/Snippets/Example27.cs @@ -12,9 +12,9 @@ public async Task Example27() { await client.StreamXFernStreamingUnionAsync( new StreamXFernStreamingUnionRequest( new UnionStreamMessageVariant { - Message = "message", StreamResponse = false, - Prompt = "prompt" + Prompt = "prompt", + Message = "message" } ) { StreamResponse = false, diff --git a/seed/go-sdk/examples/always-send-required-properties/dynamic-snippets/example19/snippet.go b/seed/go-sdk/examples/always-send-required-properties/dynamic-snippets/example19/snippet.go index 87abd30f8336..ab712c10359f 100644 --- a/seed/go-sdk/examples/always-send-required-properties/dynamic-snippets/example19/snippet.go +++ b/seed/go-sdk/examples/always-send-required-properties/dynamic-snippets/example19/snippet.go @@ -27,10 +27,6 @@ func do() { }, }, ExtendedMovie: &fern.ExtendedMovie{ - Cast: []string{ - "cast", - "cast", - }, ID: "id", Prequel: fern.String( "prequel", @@ -48,6 +44,10 @@ func do() { }, }, Revenue: int64(1000000), + Cast: []string{ + "cast", + "cast", + }, }, Entity: &fern.Entity{ Type: &fern.Type{ diff --git a/seed/go-sdk/examples/always-send-required-properties/reference.md b/seed/go-sdk/examples/always-send-required-properties/reference.md index 7ca93de0e5cd..4bd64bf8ed17 100644 --- a/seed/go-sdk/examples/always-send-required-properties/reference.md +++ b/seed/go-sdk/examples/always-send-required-properties/reference.md @@ -500,10 +500,6 @@ request := &fern.BigEntity{ }, }, ExtendedMovie: &fern.ExtendedMovie{ - Cast: []string{ - "cast", - "cast", - }, ID: "id", Prequel: fern.String( "prequel", @@ -521,6 +517,10 @@ request := &fern.BigEntity{ }, }, Revenue: int64(1000000), + Cast: []string{ + "cast", + "cast", + }, }, Entity: &fern.Entity{ Type: &fern.Type{ diff --git a/seed/go-sdk/examples/client-name-with-custom-constructor-name/dynamic-snippets/example19/snippet.go b/seed/go-sdk/examples/client-name-with-custom-constructor-name/dynamic-snippets/example19/snippet.go index a0b420585b0a..daf706a4d2fd 100644 --- a/seed/go-sdk/examples/client-name-with-custom-constructor-name/dynamic-snippets/example19/snippet.go +++ b/seed/go-sdk/examples/client-name-with-custom-constructor-name/dynamic-snippets/example19/snippet.go @@ -27,10 +27,6 @@ func do() { }, }, ExtendedMovie: &fern.ExtendedMovie{ - Cast: []string{ - "cast", - "cast", - }, ID: "id", Prequel: fern.String( "prequel", @@ -48,6 +44,10 @@ func do() { }, }, Revenue: int64(1000000), + Cast: []string{ + "cast", + "cast", + }, }, Entity: &fern.Entity{ Type: &fern.Type{ diff --git a/seed/go-sdk/examples/client-name-with-custom-constructor-name/reference.md b/seed/go-sdk/examples/client-name-with-custom-constructor-name/reference.md index 7ca93de0e5cd..4bd64bf8ed17 100644 --- a/seed/go-sdk/examples/client-name-with-custom-constructor-name/reference.md +++ b/seed/go-sdk/examples/client-name-with-custom-constructor-name/reference.md @@ -500,10 +500,6 @@ request := &fern.BigEntity{ }, }, ExtendedMovie: &fern.ExtendedMovie{ - Cast: []string{ - "cast", - "cast", - }, ID: "id", Prequel: fern.String( "prequel", @@ -521,6 +517,10 @@ request := &fern.BigEntity{ }, }, Revenue: int64(1000000), + Cast: []string{ + "cast", + "cast", + }, }, Entity: &fern.Entity{ Type: &fern.Type{ diff --git a/seed/go-sdk/examples/client-name/dynamic-snippets/example19/snippet.go b/seed/go-sdk/examples/client-name/dynamic-snippets/example19/snippet.go index 29a8c042e447..ab4c99ed5b4b 100644 --- a/seed/go-sdk/examples/client-name/dynamic-snippets/example19/snippet.go +++ b/seed/go-sdk/examples/client-name/dynamic-snippets/example19/snippet.go @@ -27,10 +27,6 @@ func do() { }, }, ExtendedMovie: &fern.ExtendedMovie{ - Cast: []string{ - "cast", - "cast", - }, ID: "id", Prequel: fern.String( "prequel", @@ -48,6 +44,10 @@ func do() { }, }, Revenue: int64(1000000), + Cast: []string{ + "cast", + "cast", + }, }, Entity: &fern.Entity{ Type: &fern.Type{ diff --git a/seed/go-sdk/examples/client-name/reference.md b/seed/go-sdk/examples/client-name/reference.md index 7ca93de0e5cd..4bd64bf8ed17 100644 --- a/seed/go-sdk/examples/client-name/reference.md +++ b/seed/go-sdk/examples/client-name/reference.md @@ -500,10 +500,6 @@ request := &fern.BigEntity{ }, }, ExtendedMovie: &fern.ExtendedMovie{ - Cast: []string{ - "cast", - "cast", - }, ID: "id", Prequel: fern.String( "prequel", @@ -521,6 +517,10 @@ request := &fern.BigEntity{ }, }, Revenue: int64(1000000), + Cast: []string{ + "cast", + "cast", + }, }, Entity: &fern.Entity{ Type: &fern.Type{ diff --git a/seed/go-sdk/examples/export-all-requests-at-root/dynamic-snippets/example19/snippet.go b/seed/go-sdk/examples/export-all-requests-at-root/dynamic-snippets/example19/snippet.go index 87abd30f8336..ab712c10359f 100644 --- a/seed/go-sdk/examples/export-all-requests-at-root/dynamic-snippets/example19/snippet.go +++ b/seed/go-sdk/examples/export-all-requests-at-root/dynamic-snippets/example19/snippet.go @@ -27,10 +27,6 @@ func do() { }, }, ExtendedMovie: &fern.ExtendedMovie{ - Cast: []string{ - "cast", - "cast", - }, ID: "id", Prequel: fern.String( "prequel", @@ -48,6 +44,10 @@ func do() { }, }, Revenue: int64(1000000), + Cast: []string{ + "cast", + "cast", + }, }, Entity: &fern.Entity{ Type: &fern.Type{ diff --git a/seed/go-sdk/examples/export-all-requests-at-root/reference.md b/seed/go-sdk/examples/export-all-requests-at-root/reference.md index 1f9bf9513e0d..89d51fd24342 100644 --- a/seed/go-sdk/examples/export-all-requests-at-root/reference.md +++ b/seed/go-sdk/examples/export-all-requests-at-root/reference.md @@ -500,10 +500,6 @@ request := &fern.BigEntity{ }, }, ExtendedMovie: &fern.ExtendedMovie{ - Cast: []string{ - "cast", - "cast", - }, ID: "id", Prequel: fern.String( "prequel", @@ -521,6 +517,10 @@ request := &fern.BigEntity{ }, }, Revenue: int64(1000000), + Cast: []string{ + "cast", + "cast", + }, }, Entity: &fern.Entity{ Type: &fern.Type{ diff --git a/seed/go-sdk/examples/exported-client-name/dynamic-snippets/example19/snippet.go b/seed/go-sdk/examples/exported-client-name/dynamic-snippets/example19/snippet.go index 9e85a7b92a1a..606b1a6fa238 100644 --- a/seed/go-sdk/examples/exported-client-name/dynamic-snippets/example19/snippet.go +++ b/seed/go-sdk/examples/exported-client-name/dynamic-snippets/example19/snippet.go @@ -27,10 +27,6 @@ func do() { }, }, ExtendedMovie: &fern.ExtendedMovie{ - Cast: []string{ - "cast", - "cast", - }, ID: "id", Prequel: fern.String( "prequel", @@ -48,6 +44,10 @@ func do() { }, }, Revenue: int64(1000000), + Cast: []string{ + "cast", + "cast", + }, }, Entity: &fern.Entity{ Type: &fern.Type{ diff --git a/seed/go-sdk/examples/exported-client-name/reference.md b/seed/go-sdk/examples/exported-client-name/reference.md index 7ca93de0e5cd..4bd64bf8ed17 100644 --- a/seed/go-sdk/examples/exported-client-name/reference.md +++ b/seed/go-sdk/examples/exported-client-name/reference.md @@ -500,10 +500,6 @@ request := &fern.BigEntity{ }, }, ExtendedMovie: &fern.ExtendedMovie{ - Cast: []string{ - "cast", - "cast", - }, ID: "id", Prequel: fern.String( "prequel", @@ -521,6 +517,10 @@ request := &fern.BigEntity{ }, }, Revenue: int64(1000000), + Cast: []string{ + "cast", + "cast", + }, }, Entity: &fern.Entity{ Type: &fern.Type{ diff --git a/seed/go-sdk/examples/getters-pass-by-value/dynamic-snippets/example19/snippet.go b/seed/go-sdk/examples/getters-pass-by-value/dynamic-snippets/example19/snippet.go index 87abd30f8336..ab712c10359f 100644 --- a/seed/go-sdk/examples/getters-pass-by-value/dynamic-snippets/example19/snippet.go +++ b/seed/go-sdk/examples/getters-pass-by-value/dynamic-snippets/example19/snippet.go @@ -27,10 +27,6 @@ func do() { }, }, ExtendedMovie: &fern.ExtendedMovie{ - Cast: []string{ - "cast", - "cast", - }, ID: "id", Prequel: fern.String( "prequel", @@ -48,6 +44,10 @@ func do() { }, }, Revenue: int64(1000000), + Cast: []string{ + "cast", + "cast", + }, }, Entity: &fern.Entity{ Type: &fern.Type{ diff --git a/seed/go-sdk/examples/getters-pass-by-value/reference.md b/seed/go-sdk/examples/getters-pass-by-value/reference.md index 7ca93de0e5cd..4bd64bf8ed17 100644 --- a/seed/go-sdk/examples/getters-pass-by-value/reference.md +++ b/seed/go-sdk/examples/getters-pass-by-value/reference.md @@ -500,10 +500,6 @@ request := &fern.BigEntity{ }, }, ExtendedMovie: &fern.ExtendedMovie{ - Cast: []string{ - "cast", - "cast", - }, ID: "id", Prequel: fern.String( "prequel", @@ -521,6 +517,10 @@ request := &fern.BigEntity{ }, }, Revenue: int64(1000000), + Cast: []string{ + "cast", + "cast", + }, }, Entity: &fern.Entity{ Type: &fern.Type{ diff --git a/seed/go-sdk/examples/no-custom-config/dynamic-snippets/example19/snippet.go b/seed/go-sdk/examples/no-custom-config/dynamic-snippets/example19/snippet.go index 87abd30f8336..ab712c10359f 100644 --- a/seed/go-sdk/examples/no-custom-config/dynamic-snippets/example19/snippet.go +++ b/seed/go-sdk/examples/no-custom-config/dynamic-snippets/example19/snippet.go @@ -27,10 +27,6 @@ func do() { }, }, ExtendedMovie: &fern.ExtendedMovie{ - Cast: []string{ - "cast", - "cast", - }, ID: "id", Prequel: fern.String( "prequel", @@ -48,6 +44,10 @@ func do() { }, }, Revenue: int64(1000000), + Cast: []string{ + "cast", + "cast", + }, }, Entity: &fern.Entity{ Type: &fern.Type{ diff --git a/seed/go-sdk/examples/no-custom-config/reference.md b/seed/go-sdk/examples/no-custom-config/reference.md index 7ca93de0e5cd..4bd64bf8ed17 100644 --- a/seed/go-sdk/examples/no-custom-config/reference.md +++ b/seed/go-sdk/examples/no-custom-config/reference.md @@ -500,10 +500,6 @@ request := &fern.BigEntity{ }, }, ExtendedMovie: &fern.ExtendedMovie{ - Cast: []string{ - "cast", - "cast", - }, ID: "id", Prequel: fern.String( "prequel", @@ -521,6 +517,10 @@ request := &fern.BigEntity{ }, }, Revenue: int64(1000000), + Cast: []string{ + "cast", + "cast", + }, }, Entity: &fern.Entity{ Type: &fern.Type{ diff --git a/seed/go-sdk/examples/package-path/dynamic-snippets/example19/snippet.go b/seed/go-sdk/examples/package-path/dynamic-snippets/example19/snippet.go index e91048522610..eb0e347a1192 100644 --- a/seed/go-sdk/examples/package-path/dynamic-snippets/example19/snippet.go +++ b/seed/go-sdk/examples/package-path/dynamic-snippets/example19/snippet.go @@ -27,10 +27,6 @@ func do() { }, }, ExtendedMovie: &pleaseinhere.ExtendedMovie{ - Cast: []string{ - "cast", - "cast", - }, ID: "id", Prequel: pleaseinhere.String( "prequel", @@ -48,6 +44,10 @@ func do() { }, }, Revenue: int64(1000000), + Cast: []string{ + "cast", + "cast", + }, }, Entity: &pleaseinhere.Entity{ Type: &pleaseinhere.Type{ diff --git a/seed/go-sdk/examples/package-path/reference.md b/seed/go-sdk/examples/package-path/reference.md index 1664f4e43b8a..b5b9224a26e4 100644 --- a/seed/go-sdk/examples/package-path/reference.md +++ b/seed/go-sdk/examples/package-path/reference.md @@ -500,10 +500,6 @@ request := &pleaseinhere.BigEntity{ }, }, ExtendedMovie: &pleaseinhere.ExtendedMovie{ - Cast: []string{ - "cast", - "cast", - }, ID: "id", Prequel: pleaseinhere.String( "prequel", @@ -521,6 +517,10 @@ request := &pleaseinhere.BigEntity{ }, }, Revenue: int64(1000000), + Cast: []string{ + "cast", + "cast", + }, }, Entity: &pleaseinhere.Entity{ Type: &pleaseinhere.Type{ diff --git a/seed/go-sdk/examples/readme-config/README.md b/seed/go-sdk/examples/readme-config/README.md index d52e62790fa5..3daca00443e0 100644 --- a/seed/go-sdk/examples/readme-config/README.md +++ b/seed/go-sdk/examples/readme-config/README.md @@ -74,10 +74,6 @@ func do() { }, }, ExtendedMovie: &fern.ExtendedMovie{ - Cast: []string{ - "cast", - "cast", - }, ID: "id", Prequel: fern.String( "prequel", @@ -95,6 +91,10 @@ func do() { }, }, Revenue: int64(1000000), + Cast: []string{ + "cast", + "cast", + }, }, Entity: &fern.Entity{ Type: &fern.Type{ diff --git a/seed/go-sdk/examples/readme-config/dynamic-snippets/example19/snippet.go b/seed/go-sdk/examples/readme-config/dynamic-snippets/example19/snippet.go index a0b420585b0a..daf706a4d2fd 100644 --- a/seed/go-sdk/examples/readme-config/dynamic-snippets/example19/snippet.go +++ b/seed/go-sdk/examples/readme-config/dynamic-snippets/example19/snippet.go @@ -27,10 +27,6 @@ func do() { }, }, ExtendedMovie: &fern.ExtendedMovie{ - Cast: []string{ - "cast", - "cast", - }, ID: "id", Prequel: fern.String( "prequel", @@ -48,6 +44,10 @@ func do() { }, }, Revenue: int64(1000000), + Cast: []string{ + "cast", + "cast", + }, }, Entity: &fern.Entity{ Type: &fern.Type{ diff --git a/seed/go-sdk/examples/readme-config/reference.md b/seed/go-sdk/examples/readme-config/reference.md index 7ca93de0e5cd..4bd64bf8ed17 100644 --- a/seed/go-sdk/examples/readme-config/reference.md +++ b/seed/go-sdk/examples/readme-config/reference.md @@ -500,10 +500,6 @@ request := &fern.BigEntity{ }, }, ExtendedMovie: &fern.ExtendedMovie{ - Cast: []string{ - "cast", - "cast", - }, ID: "id", Prequel: fern.String( "prequel", @@ -521,6 +517,10 @@ request := &fern.BigEntity{ }, }, Revenue: int64(1000000), + Cast: []string{ + "cast", + "cast", + }, }, Entity: &fern.Entity{ Type: &fern.Type{ diff --git a/seed/go-sdk/examples/v0/dynamic-snippets/example19/snippet.go b/seed/go-sdk/examples/v0/dynamic-snippets/example19/snippet.go index 87abd30f8336..ab712c10359f 100644 --- a/seed/go-sdk/examples/v0/dynamic-snippets/example19/snippet.go +++ b/seed/go-sdk/examples/v0/dynamic-snippets/example19/snippet.go @@ -27,10 +27,6 @@ func do() { }, }, ExtendedMovie: &fern.ExtendedMovie{ - Cast: []string{ - "cast", - "cast", - }, ID: "id", Prequel: fern.String( "prequel", @@ -48,6 +44,10 @@ func do() { }, }, Revenue: int64(1000000), + Cast: []string{ + "cast", + "cast", + }, }, Entity: &fern.Entity{ Type: &fern.Type{ diff --git a/seed/go-sdk/examples/v0/reference.md b/seed/go-sdk/examples/v0/reference.md index 7ca93de0e5cd..4bd64bf8ed17 100644 --- a/seed/go-sdk/examples/v0/reference.md +++ b/seed/go-sdk/examples/v0/reference.md @@ -500,10 +500,6 @@ request := &fern.BigEntity{ }, }, ExtendedMovie: &fern.ExtendedMovie{ - Cast: []string{ - "cast", - "cast", - }, ID: "id", Prequel: fern.String( "prequel", @@ -521,6 +517,10 @@ request := &fern.BigEntity{ }, }, Revenue: int64(1000000), + Cast: []string{ + "cast", + "cast", + }, }, Entity: &fern.Entity{ Type: &fern.Type{ diff --git a/seed/go-sdk/literal/dynamic-snippets/example2/snippet.go b/seed/go-sdk/literal/dynamic-snippets/example2/snippet.go index 1960f1d0bf8f..b21844a77d40 100644 --- a/seed/go-sdk/literal/dynamic-snippets/example2/snippet.go +++ b/seed/go-sdk/literal/dynamic-snippets/example2/snippet.go @@ -15,6 +15,7 @@ func do() { ), ) request := &fern.SendLiteralsInlinedRequest{ + Query: "What is the weather today", Temperature: fern.Float64( 10.1, ), @@ -27,7 +28,6 @@ func do() { ObjectWithLiteral: &fern.ATopLevelLiteral{ NestedLiteral: &fern.ANestedLiteral{}, }, - Query: "What is the weather today", } client.Inlined.Send( context.TODO(), diff --git a/seed/go-sdk/literal/dynamic-snippets/example8/snippet.go b/seed/go-sdk/literal/dynamic-snippets/example8/snippet.go index 7c44abd8654d..3fe1dbb3949e 100644 --- a/seed/go-sdk/literal/dynamic-snippets/example8/snippet.go +++ b/seed/go-sdk/literal/dynamic-snippets/example8/snippet.go @@ -15,10 +15,10 @@ func do() { ), ) request := &fern.SendRequest{ + Query: "What is the weather today", Context: fern.SomeLiteral( "You're super wise", ), - Query: "What is the weather today", ContainerObject: &fern.ContainerObject{ NestedObjects: []*fern.NestedObjectWithLiterals{ &fern.NestedObjectWithLiterals{ diff --git a/seed/go-sdk/literal/reference.md b/seed/go-sdk/literal/reference.md index 4674f58219ce..60bbcc3f8164 100644 --- a/seed/go-sdk/literal/reference.md +++ b/seed/go-sdk/literal/reference.md @@ -78,6 +78,7 @@ client.Headers.Send( ```go request := &fern.SendLiteralsInlinedRequest{ + Query: "What is the weather today", Temperature: fern.Float64( 10.1, ), @@ -90,7 +91,6 @@ request := &fern.SendLiteralsInlinedRequest{ ObjectWithLiteral: &fern.ATopLevelLiteral{ NestedLiteral: &fern.ANestedLiteral{}, }, - Query: "What is the weather today", } client.Inlined.Send( context.TODO(), @@ -363,10 +363,10 @@ client.Query.Send( ```go request := &fern.SendRequest{ + Query: "What is the weather today", Context: fern.SomeLiteral( "You're super wise", ), - Query: "What is the weather today", ContainerObject: &fern.ContainerObject{ NestedObjects: []*fern.NestedObjectWithLiterals{ &fern.NestedObjectWithLiterals{ diff --git a/seed/go-sdk/server-sent-events-openapi/with-wire-tests/client/root_test/root_test.go b/seed/go-sdk/server-sent-events-openapi/with-wire-tests/client/root_test/root_test.go index 50e6583c6e2c..1e13ac738277 100644 --- a/seed/go-sdk/server-sent-events-openapi/with-wire-tests/client/root_test/root_test.go +++ b/seed/go-sdk/server-sent-events-openapi/with-wire-tests/client/root_test/root_test.go @@ -378,11 +378,11 @@ func TestStreamXFernStreamingUnionStreamWithWireMock( ) request := &fern.StreamXFernStreamingUnionStreamRequest{ Message: &fern.UnionStreamMessageVariant{ - Prompt: "prompt", - Message: "message", StreamResponse: fern.Bool( true, ), + Prompt: "prompt", + Message: "message", }, } _, invocationErr := client.StreamXFernStreamingUnionStream( @@ -409,11 +409,11 @@ func TestStreamXFernStreamingUnionStreamWithWireMock2( ) request := &fern.StreamXFernStreamingUnionStreamRequest{ Message: &fern.UnionStreamMessageVariant{ - Prompt: "prompt", - Message: "message", StreamResponse: fern.Bool( false, ), + Prompt: "prompt", + Message: "message", }, } _, invocationErr := client.StreamXFernStreamingUnionStream( diff --git a/seed/go-sdk/server-sent-events-openapi/with-wire-tests/dynamic-snippets/example24/snippet.go b/seed/go-sdk/server-sent-events-openapi/with-wire-tests/dynamic-snippets/example24/snippet.go index 92fb1ae4ef9d..5645d02b8791 100644 --- a/seed/go-sdk/server-sent-events-openapi/with-wire-tests/dynamic-snippets/example24/snippet.go +++ b/seed/go-sdk/server-sent-events-openapi/with-wire-tests/dynamic-snippets/example24/snippet.go @@ -16,11 +16,11 @@ func do() { ) request := &fern.StreamXFernStreamingUnionStreamRequest{ Message: &fern.UnionStreamMessageVariant{ - Prompt: "prompt", - Message: "message", StreamResponse: fern.Bool( true, ), + Prompt: "prompt", + Message: "message", }, } client.StreamXFernStreamingUnionStream( diff --git a/seed/go-sdk/server-sent-events-openapi/with-wire-tests/dynamic-snippets/example25/snippet.go b/seed/go-sdk/server-sent-events-openapi/with-wire-tests/dynamic-snippets/example25/snippet.go index 21c8bacb8f48..5645d02b8791 100644 --- a/seed/go-sdk/server-sent-events-openapi/with-wire-tests/dynamic-snippets/example25/snippet.go +++ b/seed/go-sdk/server-sent-events-openapi/with-wire-tests/dynamic-snippets/example25/snippet.go @@ -16,11 +16,11 @@ func do() { ) request := &fern.StreamXFernStreamingUnionStreamRequest{ Message: &fern.UnionStreamMessageVariant{ - Message: "message", StreamResponse: fern.Bool( true, ), Prompt: "prompt", + Message: "message", }, } client.StreamXFernStreamingUnionStream( diff --git a/seed/go-sdk/server-sent-events-openapi/with-wire-tests/dynamic-snippets/example26/snippet.go b/seed/go-sdk/server-sent-events-openapi/with-wire-tests/dynamic-snippets/example26/snippet.go index f83c945ea30a..4001a79a5661 100644 --- a/seed/go-sdk/server-sent-events-openapi/with-wire-tests/dynamic-snippets/example26/snippet.go +++ b/seed/go-sdk/server-sent-events-openapi/with-wire-tests/dynamic-snippets/example26/snippet.go @@ -16,11 +16,11 @@ func do() { ) request := &fern.StreamXFernStreamingUnionRequest{ Message: &fern.UnionStreamMessageVariant{ - Prompt: "prompt", - Message: "message", StreamResponse: fern.Bool( false, ), + Prompt: "prompt", + Message: "message", }, } client.StreamXFernStreamingUnion( diff --git a/seed/go-sdk/server-sent-events-openapi/with-wire-tests/dynamic-snippets/example27/snippet.go b/seed/go-sdk/server-sent-events-openapi/with-wire-tests/dynamic-snippets/example27/snippet.go index fc820dc89f7c..4001a79a5661 100644 --- a/seed/go-sdk/server-sent-events-openapi/with-wire-tests/dynamic-snippets/example27/snippet.go +++ b/seed/go-sdk/server-sent-events-openapi/with-wire-tests/dynamic-snippets/example27/snippet.go @@ -16,11 +16,11 @@ func do() { ) request := &fern.StreamXFernStreamingUnionRequest{ Message: &fern.UnionStreamMessageVariant{ - Message: "message", StreamResponse: fern.Bool( false, ), Prompt: "prompt", + Message: "message", }, } client.StreamXFernStreamingUnion( diff --git a/seed/go-sdk/server-sent-events-openapi/with-wire-tests/reference.md b/seed/go-sdk/server-sent-events-openapi/with-wire-tests/reference.md index 69c84e0a8a25..11ce05e15fc2 100644 --- a/seed/go-sdk/server-sent-events-openapi/with-wire-tests/reference.md +++ b/seed/go-sdk/server-sent-events-openapi/with-wire-tests/reference.md @@ -813,11 +813,11 @@ Uses x-fern-streaming with stream-condition where the request body is a discrimi ```go request := &fern.StreamXFernStreamingUnionStreamRequest{ Message: &fern.UnionStreamMessageVariant{ - Prompt: "prompt", - Message: "message", StreamResponse: fern.Bool( true, ), + Prompt: "prompt", + Message: "message", }, } client.StreamXFernStreamingUnionStream( @@ -880,11 +880,11 @@ Uses x-fern-streaming with stream-condition where the request body is a discrimi ```go request := &fern.StreamXFernStreamingUnionStreamRequest{ Message: &fern.UnionStreamMessageVariant{ - Prompt: "prompt", - Message: "message", StreamResponse: fern.Bool( false, ), + Prompt: "prompt", + Message: "message", }, } client.StreamXFernStreamingUnionStream( diff --git a/seed/php-sdk/examples/no-custom-config/reference.md b/seed/php-sdk/examples/no-custom-config/reference.md index 3280b93f7584..db475c5d8e69 100644 --- a/seed/php-sdk/examples/no-custom-config/reference.md +++ b/seed/php-sdk/examples/no-custom-config/reference.md @@ -472,10 +472,6 @@ $client->service->createBigEntity( 'id' => 'id', ]), 'extendedMovie' => new ExtendedMovie([ - 'cast' => [ - 'cast', - 'cast', - ], 'id' => 'id', 'prequel' => 'prequel', 'title' => 'title', @@ -490,6 +486,10 @@ $client->service->createBigEntity( ], ], 'revenue' => 1000000, + 'cast' => [ + 'cast', + 'cast', + ], ]), 'entity' => new Entity([ 'type' => BasicType::Primitive->value, diff --git a/seed/php-sdk/examples/no-custom-config/src/dynamic-snippets/example19/snippet.php b/seed/php-sdk/examples/no-custom-config/src/dynamic-snippets/example19/snippet.php index 63552c36c32e..11c20f994424 100644 --- a/seed/php-sdk/examples/no-custom-config/src/dynamic-snippets/example19/snippet.php +++ b/seed/php-sdk/examples/no-custom-config/src/dynamic-snippets/example19/snippet.php @@ -36,10 +36,6 @@ 'id' => 'id', ]), 'extendedMovie' => new ExtendedMovie([ - 'cast' => [ - 'cast', - 'cast', - ], 'id' => 'id', 'prequel' => 'prequel', 'title' => 'title', @@ -54,6 +50,10 @@ ], ], 'revenue' => 1000000, + 'cast' => [ + 'cast', + 'cast', + ], ]), 'entity' => new Entity([ 'type' => BasicType::Primitive->value, diff --git a/seed/php-sdk/examples/readme-config/reference.md b/seed/php-sdk/examples/readme-config/reference.md index 3280b93f7584..db475c5d8e69 100644 --- a/seed/php-sdk/examples/readme-config/reference.md +++ b/seed/php-sdk/examples/readme-config/reference.md @@ -472,10 +472,6 @@ $client->service->createBigEntity( 'id' => 'id', ]), 'extendedMovie' => new ExtendedMovie([ - 'cast' => [ - 'cast', - 'cast', - ], 'id' => 'id', 'prequel' => 'prequel', 'title' => 'title', @@ -490,6 +486,10 @@ $client->service->createBigEntity( ], ], 'revenue' => 1000000, + 'cast' => [ + 'cast', + 'cast', + ], ]), 'entity' => new Entity([ 'type' => BasicType::Primitive->value, diff --git a/seed/php-sdk/examples/readme-config/src/dynamic-snippets/example19/snippet.php b/seed/php-sdk/examples/readme-config/src/dynamic-snippets/example19/snippet.php index 63552c36c32e..11c20f994424 100644 --- a/seed/php-sdk/examples/readme-config/src/dynamic-snippets/example19/snippet.php +++ b/seed/php-sdk/examples/readme-config/src/dynamic-snippets/example19/snippet.php @@ -36,10 +36,6 @@ 'id' => 'id', ]), 'extendedMovie' => new ExtendedMovie([ - 'cast' => [ - 'cast', - 'cast', - ], 'id' => 'id', 'prequel' => 'prequel', 'title' => 'title', @@ -54,6 +50,10 @@ ], ], 'revenue' => 1000000, + 'cast' => [ + 'cast', + 'cast', + ], ]), 'entity' => new Entity([ 'type' => BasicType::Primitive->value, diff --git a/seed/php-sdk/extra-properties/README.md b/seed/php-sdk/extra-properties/README.md index a34118c84c6a..99304efedb93 100644 --- a/seed/php-sdk/extra-properties/README.md +++ b/seed/php-sdk/extra-properties/README.md @@ -42,9 +42,9 @@ use Seed\User\Requests\CreateUserRequest; $client = new SeedClient(); $client->user->createUser( new CreateUserRequest([ - 'name' => 'Alice', 'type' => 'CreateUserRequest', 'version' => 'v1', + 'name' => 'Alice', ]), ); diff --git a/seed/php-sdk/extra-properties/reference.md b/seed/php-sdk/extra-properties/reference.md index 1293c3c92824..e6ab9da82cc5 100644 --- a/seed/php-sdk/extra-properties/reference.md +++ b/seed/php-sdk/extra-properties/reference.md @@ -15,9 +15,9 @@ ```php $client->user->createUser( new CreateUserRequest([ - 'name' => 'Alice', 'type' => 'CreateUserRequest', 'version' => 'v1', + 'name' => 'Alice', ]), ); ``` diff --git a/seed/php-sdk/extra-properties/src/dynamic-snippets/example0/snippet.php b/seed/php-sdk/extra-properties/src/dynamic-snippets/example0/snippet.php index f23a8348335d..df5b159de847 100644 --- a/seed/php-sdk/extra-properties/src/dynamic-snippets/example0/snippet.php +++ b/seed/php-sdk/extra-properties/src/dynamic-snippets/example0/snippet.php @@ -12,8 +12,8 @@ ); $client->user->createUser( new CreateUserRequest([ - 'name' => 'Alice', 'type' => 'CreateUserRequest', 'version' => 'v1', + 'name' => 'Alice', ]), ); diff --git a/seed/php-sdk/literal/reference.md b/seed/php-sdk/literal/reference.md index 2fa2a3ac5b09..ee24f3d4bad6 100644 --- a/seed/php-sdk/literal/reference.md +++ b/seed/php-sdk/literal/reference.md @@ -78,9 +78,11 @@ $client->headers->send( ```php $client->inlined->send( new SendLiteralsInlinedRequest([ - 'temperature' => 10.1, 'prompt' => 'You are a helpful assistant', 'context' => "You're super wise", + 'query' => 'What is the weather today', + 'temperature' => 10.1, + 'stream' => false, 'aliasedContext' => "You're super wise", 'maybeContext' => "You're super wise", 'objectWithLiteral' => new ATopLevelLiteral([ @@ -88,8 +90,6 @@ $client->inlined->send( 'myLiteral' => 'How super cool', ]), ]), - 'stream' => false, - 'query' => 'What is the weather today', ]), ); ``` @@ -351,9 +351,9 @@ $client->query->send( $client->reference->send( new SendRequest([ 'prompt' => 'You are a helpful assistant', + 'query' => 'What is the weather today', 'stream' => false, 'context' => "You're super wise", - 'query' => 'What is the weather today', 'containerObject' => new ContainerObject([ 'nestedObjects' => [ new NestedObjectWithLiterals([ diff --git a/seed/php-sdk/literal/src/dynamic-snippets/example2/snippet.php b/seed/php-sdk/literal/src/dynamic-snippets/example2/snippet.php index fc6d4959aa9b..fdaf173279a3 100644 --- a/seed/php-sdk/literal/src/dynamic-snippets/example2/snippet.php +++ b/seed/php-sdk/literal/src/dynamic-snippets/example2/snippet.php @@ -16,9 +16,11 @@ ); $client->inlined->send( new SendLiteralsInlinedRequest([ - 'temperature' => 10.1, 'prompt' => 'You are a helpful assistant', 'context' => "You're super wise", + 'query' => 'What is the weather today', + 'temperature' => 10.1, + 'stream' => false, 'aliasedContext' => "You're super wise", 'maybeContext' => "You're super wise", 'objectWithLiteral' => new ATopLevelLiteral([ @@ -26,7 +28,5 @@ 'myLiteral' => 'How super cool', ]), ]), - 'stream' => false, - 'query' => 'What is the weather today', ]), ); diff --git a/seed/php-sdk/literal/src/dynamic-snippets/example8/snippet.php b/seed/php-sdk/literal/src/dynamic-snippets/example8/snippet.php index 61416284e8ca..951f2bf9bbb8 100644 --- a/seed/php-sdk/literal/src/dynamic-snippets/example8/snippet.php +++ b/seed/php-sdk/literal/src/dynamic-snippets/example8/snippet.php @@ -17,9 +17,9 @@ $client->reference->send( new SendRequest([ 'prompt' => 'You are a helpful assistant', + 'query' => 'What is the weather today', 'stream' => false, 'context' => "You're super wise", - 'query' => 'What is the weather today', 'containerObject' => new ContainerObject([ 'nestedObjects' => [ new NestedObjectWithLiterals([ diff --git a/seed/php-sdk/server-sent-events-openapi/reference.md b/seed/php-sdk/server-sent-events-openapi/reference.md index dd6d73ca808e..974556788ad2 100644 --- a/seed/php-sdk/server-sent-events-openapi/reference.md +++ b/seed/php-sdk/server-sent-events-openapi/reference.md @@ -781,9 +781,9 @@ Uses x-fern-streaming with stream-condition where the request body is a discrimi ```php $client->streamXFernStreamingUnionStream( StreamXFernStreamingUnionStreamRequest::message(true, new UnionStreamMessageVariant([ + 'streamResponse' => true, 'prompt' => 'prompt', 'message' => 'message', - 'streamResponse' => true, ])), ); ``` @@ -841,9 +841,9 @@ Uses x-fern-streaming with stream-condition where the request body is a discrimi ```php $client->streamXFernStreamingUnionStream( StreamXFernStreamingUnionStreamRequest::message(false, new UnionStreamMessageVariant([ + 'streamResponse' => false, 'prompt' => 'prompt', 'message' => 'message', - 'streamResponse' => false, ])), ); ``` diff --git a/seed/php-sdk/server-sent-events-openapi/src/dynamic-snippets/example24/snippet.php b/seed/php-sdk/server-sent-events-openapi/src/dynamic-snippets/example24/snippet.php index c4c39b2f99f5..f55a9796a39e 100644 --- a/seed/php-sdk/server-sent-events-openapi/src/dynamic-snippets/example24/snippet.php +++ b/seed/php-sdk/server-sent-events-openapi/src/dynamic-snippets/example24/snippet.php @@ -13,8 +13,8 @@ ); $client->streamXFernStreamingUnionStream( StreamXFernStreamingUnionStreamRequest::message(true, new UnionStreamMessageVariant([ + 'streamResponse' => true, 'prompt' => 'prompt', 'message' => 'message', - 'streamResponse' => true, ])), ); diff --git a/seed/php-sdk/server-sent-events-openapi/src/dynamic-snippets/example25/snippet.php b/seed/php-sdk/server-sent-events-openapi/src/dynamic-snippets/example25/snippet.php index b35e31e192ba..f55a9796a39e 100644 --- a/seed/php-sdk/server-sent-events-openapi/src/dynamic-snippets/example25/snippet.php +++ b/seed/php-sdk/server-sent-events-openapi/src/dynamic-snippets/example25/snippet.php @@ -13,8 +13,8 @@ ); $client->streamXFernStreamingUnionStream( StreamXFernStreamingUnionStreamRequest::message(true, new UnionStreamMessageVariant([ - 'message' => 'message', 'streamResponse' => true, 'prompt' => 'prompt', + 'message' => 'message', ])), ); diff --git a/seed/php-sdk/server-sent-events-openapi/src/dynamic-snippets/example26/snippet.php b/seed/php-sdk/server-sent-events-openapi/src/dynamic-snippets/example26/snippet.php index 59b596dc5a06..5ac78d4df8af 100644 --- a/seed/php-sdk/server-sent-events-openapi/src/dynamic-snippets/example26/snippet.php +++ b/seed/php-sdk/server-sent-events-openapi/src/dynamic-snippets/example26/snippet.php @@ -13,8 +13,8 @@ ); $client->streamXFernStreamingUnion( StreamXFernStreamingUnionRequest::message(false, new UnionStreamMessageVariant([ + 'streamResponse' => false, 'prompt' => 'prompt', 'message' => 'message', - 'streamResponse' => false, ])), ); diff --git a/seed/php-sdk/server-sent-events-openapi/src/dynamic-snippets/example27/snippet.php b/seed/php-sdk/server-sent-events-openapi/src/dynamic-snippets/example27/snippet.php index 14f1bc40d3ca..5ac78d4df8af 100644 --- a/seed/php-sdk/server-sent-events-openapi/src/dynamic-snippets/example27/snippet.php +++ b/seed/php-sdk/server-sent-events-openapi/src/dynamic-snippets/example27/snippet.php @@ -13,8 +13,8 @@ ); $client->streamXFernStreamingUnion( StreamXFernStreamingUnionRequest::message(false, new UnionStreamMessageVariant([ - 'message' => 'message', 'streamResponse' => false, 'prompt' => 'prompt', + 'message' => 'message', ])), ); diff --git a/seed/python-sdk/api-wide-base-path/README.md b/seed/python-sdk/api-wide-base-path/README.md index b055f68c7f84..3e45d909b614 100644 --- a/seed/python-sdk/api-wide-base-path/README.md +++ b/seed/python-sdk/api-wide-base-path/README.md @@ -37,7 +37,6 @@ Instantiate and use the client with the following: from seed import SeedApiWideBasePath client = SeedApiWideBasePath( - path_param="pathParam", base_url="https://yourhost.com/path/to/api", ) @@ -59,7 +58,6 @@ import asyncio from seed import AsyncSeedApiWideBasePath client = AsyncSeedApiWideBasePath( - path_param="pathParam", base_url="https://yourhost.com/path/to/api", ) diff --git a/seed/python-sdk/api-wide-base-path/reference.md b/seed/python-sdk/api-wide-base-path/reference.md index e0dac1fb452f..bff42d37b139 100644 --- a/seed/python-sdk/api-wide-base-path/reference.md +++ b/seed/python-sdk/api-wide-base-path/reference.md @@ -16,7 +16,6 @@ from seed import SeedApiWideBasePath client = SeedApiWideBasePath( - path_param="pathParam", base_url="https://yourhost.com/path/to/api", ) diff --git a/seed/python-sdk/examples/additional_init_exports_with_duplicates/reference.md b/seed/python-sdk/examples/additional_init_exports_with_duplicates/reference.md index a8376bd0e330..b9a33764a118 100644 --- a/seed/python-sdk/examples/additional_init_exports_with_duplicates/reference.md +++ b/seed/python-sdk/examples/additional_init_exports_with_duplicates/reference.md @@ -629,10 +629,6 @@ client.service.create_big_entity( id="id", ), extended_movie=ExtendedMovie( - cast=[ - "cast", - "cast" - ], id="id", prequel="prequel", title="title", @@ -645,6 +641,10 @@ client.service.create_big_entity( "metadata": {"key": "value"} }, revenue=1000000, + cast=[ + "cast", + "cast" + ], ), entity=Entity( type="primitive", diff --git a/seed/python-sdk/examples/client-filename/reference.md b/seed/python-sdk/examples/client-filename/reference.md index b59fc542a5f2..5b91a6994ec3 100644 --- a/seed/python-sdk/examples/client-filename/reference.md +++ b/seed/python-sdk/examples/client-filename/reference.md @@ -629,10 +629,6 @@ client.service.create_big_entity( id="id", ), extended_movie=ExtendedMovie( - cast=[ - "cast", - "cast" - ], id="id", prequel="prequel", title="title", @@ -645,6 +641,10 @@ client.service.create_big_entity( "metadata": {"key": "value"} }, revenue=1000000, + cast=[ + "cast", + "cast" + ], ), entity=Entity( type="primitive", diff --git a/seed/python-sdk/examples/legacy-wire-tests/reference.md b/seed/python-sdk/examples/legacy-wire-tests/reference.md index a8376bd0e330..b9a33764a118 100644 --- a/seed/python-sdk/examples/legacy-wire-tests/reference.md +++ b/seed/python-sdk/examples/legacy-wire-tests/reference.md @@ -629,10 +629,6 @@ client.service.create_big_entity( id="id", ), extended_movie=ExtendedMovie( - cast=[ - "cast", - "cast" - ], id="id", prequel="prequel", title="title", @@ -645,6 +641,10 @@ client.service.create_big_entity( "metadata": {"key": "value"} }, revenue=1000000, + cast=[ + "cast", + "cast" + ], ), entity=Entity( type="primitive", diff --git a/seed/python-sdk/examples/no-custom-config/reference.md b/seed/python-sdk/examples/no-custom-config/reference.md index a8376bd0e330..b9a33764a118 100644 --- a/seed/python-sdk/examples/no-custom-config/reference.md +++ b/seed/python-sdk/examples/no-custom-config/reference.md @@ -629,10 +629,6 @@ client.service.create_big_entity( id="id", ), extended_movie=ExtendedMovie( - cast=[ - "cast", - "cast" - ], id="id", prequel="prequel", title="title", @@ -645,6 +641,10 @@ client.service.create_big_entity( "metadata": {"key": "value"} }, revenue=1000000, + cast=[ + "cast", + "cast" + ], ), entity=Entity( type="primitive", diff --git a/seed/python-sdk/examples/omit-fern-headers/reference.md b/seed/python-sdk/examples/omit-fern-headers/reference.md index a8376bd0e330..b9a33764a118 100644 --- a/seed/python-sdk/examples/omit-fern-headers/reference.md +++ b/seed/python-sdk/examples/omit-fern-headers/reference.md @@ -629,10 +629,6 @@ client.service.create_big_entity( id="id", ), extended_movie=ExtendedMovie( - cast=[ - "cast", - "cast" - ], id="id", prequel="prequel", title="title", @@ -645,6 +641,10 @@ client.service.create_big_entity( "metadata": {"key": "value"} }, revenue=1000000, + cast=[ + "cast", + "cast" + ], ), entity=Entity( type="primitive", diff --git a/seed/python-sdk/examples/readme/reference.md b/seed/python-sdk/examples/readme/reference.md index a8376bd0e330..b9a33764a118 100644 --- a/seed/python-sdk/examples/readme/reference.md +++ b/seed/python-sdk/examples/readme/reference.md @@ -629,10 +629,6 @@ client.service.create_big_entity( id="id", ), extended_movie=ExtendedMovie( - cast=[ - "cast", - "cast" - ], id="id", prequel="prequel", title="title", @@ -645,6 +641,10 @@ client.service.create_big_entity( "metadata": {"key": "value"} }, revenue=1000000, + cast=[ + "cast", + "cast" + ], ), entity=Entity( type="primitive", diff --git a/seed/python-sdk/exhaustive/deps_with_min_python_version/poetry.lock b/seed/python-sdk/exhaustive/deps_with_min_python_version/poetry.lock index ad3d67d5a2c8..66d2279dae4b 100644 --- a/seed/python-sdk/exhaustive/deps_with_min_python_version/poetry.lock +++ b/seed/python-sdk/exhaustive/deps_with_min_python_version/poetry.lock @@ -917,14 +917,14 @@ files = [ [[package]] name = "langchain" -version = "1.3.0" +version = "1.3.1" description = "Building applications with LLMs through composability" optional = false python-versions = "<4.0.0,>=3.10.0" groups = ["dev"] files = [ - {file = "langchain-1.3.0-py3-none-any.whl", hash = "sha256:9ce48828c706c00c586304b519fbd910e75d9f5ab3f319c31834e42107437f43"}, - {file = "langchain-1.3.0.tar.gz", hash = "sha256:8ec70ee0cef94255f3e522423b254093a3dd34509638d353c50f3d9dd498debc"}, + {file = "langchain-1.3.1-py3-none-any.whl", hash = "sha256:154e9c30c90b391eba4315296f6bf6b6fac6b058ddea4cc771a10470968fe36f"}, + {file = "langchain-1.3.1.tar.gz", hash = "sha256:bc283c220233230f48b8e50ab1fbf1b688bcb206d933fa448d40a9b143177f62"}, ] [package.dependencies] diff --git a/seed/python-sdk/literal/no-custom-config/reference.md b/seed/python-sdk/literal/no-custom-config/reference.md index cde69a9a8d58..6eb7e9f736b8 100644 --- a/seed/python-sdk/literal/no-custom-config/reference.md +++ b/seed/python-sdk/literal/no-custom-config/reference.md @@ -97,13 +97,13 @@ client = SeedLiteral( ) client.inlined.send( + query="What is the weather today", temperature=10.1, object_with_literal=ATopLevelLiteral( nested_literal=ANestedLiteral( my_literal="How super cool", ), ), - query="What is the weather today", ) ``` diff --git a/seed/python-sdk/literal/use_typeddict_requests/reference.md b/seed/python-sdk/literal/use_typeddict_requests/reference.md index da789064f558..f548bee187b7 100644 --- a/seed/python-sdk/literal/use_typeddict_requests/reference.md +++ b/seed/python-sdk/literal/use_typeddict_requests/reference.md @@ -96,13 +96,13 @@ client = SeedLiteral( ) client.inlined.send( + query="What is the weather today", temperature=10.1, object_with_literal={ "nested_literal": { "my_literal": "How super cool" } }, - query="What is the weather today", ) ``` diff --git a/seed/python-sdk/package-yml/README.md b/seed/python-sdk/package-yml/README.md index 83ef9786cdd9..231ffee0c783 100644 --- a/seed/python-sdk/package-yml/README.md +++ b/seed/python-sdk/package-yml/README.md @@ -37,7 +37,6 @@ Instantiate and use the client with the following: from seed import SeedPackageYml client = SeedPackageYml( - id="id-ksfd9c1", base_url="https://yourhost.com/path/to/api", ) @@ -58,7 +57,6 @@ import asyncio from seed import AsyncSeedPackageYml client = AsyncSeedPackageYml( - id="id-ksfd9c1", base_url="https://yourhost.com/path/to/api", ) diff --git a/seed/python-sdk/package-yml/reference.md b/seed/python-sdk/package-yml/reference.md index e2792f4afedf..8b2d724d14ac 100644 --- a/seed/python-sdk/package-yml/reference.md +++ b/seed/python-sdk/package-yml/reference.md @@ -15,7 +15,6 @@ from seed import SeedPackageYml client = SeedPackageYml( - id="id-ksfd9c1", base_url="https://yourhost.com/path/to/api", ) @@ -84,7 +83,6 @@ client.echo( from seed import SeedPackageYml client = SeedPackageYml( - id="id-a2ijs82", base_url="https://yourhost.com/path/to/api", ) diff --git a/seed/python-sdk/path-parameters/README.md b/seed/python-sdk/path-parameters/README.md index e66dbfdbe90c..7616faba5854 100644 --- a/seed/python-sdk/path-parameters/README.md +++ b/seed/python-sdk/path-parameters/README.md @@ -37,7 +37,6 @@ Instantiate and use the client with the following: from seed import SeedPathParameters client = SeedPathParameters( - tenant_id="tenant_id", base_url="https://yourhost.com/path/to/api", ) @@ -61,7 +60,6 @@ import asyncio from seed import AsyncSeedPathParameters client = AsyncSeedPathParameters( - tenant_id="tenant_id", base_url="https://yourhost.com/path/to/api", ) diff --git a/seed/python-sdk/path-parameters/reference.md b/seed/python-sdk/path-parameters/reference.md index 9f5925ffff80..39537e6d0b63 100644 --- a/seed/python-sdk/path-parameters/reference.md +++ b/seed/python-sdk/path-parameters/reference.md @@ -16,7 +16,6 @@ from seed import SeedPathParameters client = SeedPathParameters( - tenant_id="tenant_id", base_url="https://yourhost.com/path/to/api", ) @@ -83,11 +82,11 @@ client.organizations.get_organization( from seed import SeedPathParameters client = SeedPathParameters( - tenant_id="tenant_id", base_url="https://yourhost.com/path/to/api", ) client.organizations.get_organization_user( + tenant_id="tenant_id", organization_id="organization_id", user_id="user_id", ) @@ -158,11 +157,11 @@ client.organizations.get_organization_user( from seed import SeedPathParameters client = SeedPathParameters( - tenant_id="tenant_id", base_url="https://yourhost.com/path/to/api", ) client.organizations.search_organizations( + tenant_id="tenant_id", organization_id="organization_id", limit=1, ) @@ -234,11 +233,11 @@ client.organizations.search_organizations( from seed import SeedPathParameters client = SeedPathParameters( - tenant_id="tenant_id", base_url="https://yourhost.com/path/to/api", ) client.user.get_user( + tenant_id="tenant_id", user_id="user_id", ) @@ -300,7 +299,6 @@ client.user.get_user( from seed import SeedPathParameters client = SeedPathParameters( - tenant_id="tenant_id", base_url="https://yourhost.com/path/to/api", ) @@ -371,11 +369,11 @@ client.user.create_user( from seed import SeedPathParameters client = SeedPathParameters( - tenant_id="tenant_id", base_url="https://yourhost.com/path/to/api", ) client.user.update_user( + tenant_id="tenant_id", user_id="user_id", name="name", tags=[ @@ -450,11 +448,11 @@ client.user.update_user( from seed import SeedPathParameters client = SeedPathParameters( - tenant_id="tenant_id", base_url="https://yourhost.com/path/to/api", ) client.user.search_users( + tenant_id="tenant_id", user_id="user_id", limit=1, ) @@ -539,11 +537,11 @@ Test endpoint with path parameter that has a text prefix (v{version}) from seed import SeedPathParameters client = SeedPathParameters( - tenant_id="tenant_id", base_url="https://yourhost.com/path/to/api", ) client.user.get_user_metadata( + tenant_id="tenant_id", user_id="user_id", version=1, ) @@ -628,11 +626,11 @@ Test endpoint with path parameters listed in different order than found in path from seed import SeedPathParameters client = SeedPathParameters( - tenant_id="tenant_id", base_url="https://yourhost.com/path/to/api", ) client.user.get_user_specifics( + tenant_id="tenant_id", user_id="user_id", version=1, thought="thought", diff --git a/seed/ruby-sdk-v2/api-wide-base-path/README.md b/seed/ruby-sdk-v2/api-wide-base-path/README.md index b2d0e33b27d3..7d36874dcfb6 100644 --- a/seed/ruby-sdk-v2/api-wide-base-path/README.md +++ b/seed/ruby-sdk-v2/api-wide-base-path/README.md @@ -31,6 +31,7 @@ require "seed" client = Seed::Client.new client.service.post( + path_param: "pathParam", service_param: "serviceParam", endpoint_param: 1, resource_param: "resourceParam" diff --git a/seed/ruby-sdk-v2/api-wide-base-path/dynamic-snippets/example0/snippet.rb b/seed/ruby-sdk-v2/api-wide-base-path/dynamic-snippets/example0/snippet.rb index e592397c40f8..70d1a0c1cefb 100644 --- a/seed/ruby-sdk-v2/api-wide-base-path/dynamic-snippets/example0/snippet.rb +++ b/seed/ruby-sdk-v2/api-wide-base-path/dynamic-snippets/example0/snippet.rb @@ -3,6 +3,7 @@ client = Seed::Client.new(base_url: "https://api.fern.com") client.service.post( + path_param: "pathParam", service_param: "serviceParam", endpoint_param: 1, resource_param: "resourceParam" diff --git a/seed/ruby-sdk-v2/api-wide-base-path/reference.md b/seed/ruby-sdk-v2/api-wide-base-path/reference.md index 254a2a3b0474..58afd1dff84c 100644 --- a/seed/ruby-sdk-v2/api-wide-base-path/reference.md +++ b/seed/ruby-sdk-v2/api-wide-base-path/reference.md @@ -14,6 +14,7 @@ ```ruby client.service.post( + path_param: "pathParam", service_param: "serviceParam", endpoint_param: 1, resource_param: "resourceParam" diff --git a/seed/ruby-sdk-v2/extra-properties/README.md b/seed/ruby-sdk-v2/extra-properties/README.md index e0065c786e68..293b7993b7ea 100644 --- a/seed/ruby-sdk-v2/extra-properties/README.md +++ b/seed/ruby-sdk-v2/extra-properties/README.md @@ -31,9 +31,9 @@ require "seed" client = Seed::Client.new client.user.create_user( - name: "Alice", type: "CreateUserRequest", - version: "v1" + version: "v1", + name: "Alice" ) ``` diff --git a/seed/ruby-sdk-v2/extra-properties/dynamic-snippets/example0/snippet.rb b/seed/ruby-sdk-v2/extra-properties/dynamic-snippets/example0/snippet.rb index ace8a6311c7e..453fda790aa6 100644 --- a/seed/ruby-sdk-v2/extra-properties/dynamic-snippets/example0/snippet.rb +++ b/seed/ruby-sdk-v2/extra-properties/dynamic-snippets/example0/snippet.rb @@ -3,7 +3,7 @@ client = Seed::Client.new(base_url: "https://api.fern.com") client.user.create_user( - name: "Alice", type: "CreateUserRequest", - version: "v1" + version: "v1", + name: "Alice" ) diff --git a/seed/ruby-sdk-v2/extra-properties/reference.md b/seed/ruby-sdk-v2/extra-properties/reference.md index 5ead1f95f963..065279f68f23 100644 --- a/seed/ruby-sdk-v2/extra-properties/reference.md +++ b/seed/ruby-sdk-v2/extra-properties/reference.md @@ -14,9 +14,9 @@ ```ruby client.user.create_user( - name: "Alice", type: "CreateUserRequest", - version: "v1" + version: "v1", + name: "Alice" ) ``` diff --git a/seed/ruby-sdk-v2/literal/dynamic-snippets/example2/snippet.rb b/seed/ruby-sdk-v2/literal/dynamic-snippets/example2/snippet.rb index e89a2b736e44..0480328f34aa 100644 --- a/seed/ruby-sdk-v2/literal/dynamic-snippets/example2/snippet.rb +++ b/seed/ruby-sdk-v2/literal/dynamic-snippets/example2/snippet.rb @@ -3,16 +3,16 @@ client = Seed::Client.new(base_url: "https://api.fern.com") client.inlined.send_( - temperature: 10.1, prompt: "You are a helpful assistant", context: "You're super wise", + query: "What is the weather today", + temperature: 10.1, + stream: false, aliased_context: "You're super wise", maybe_context: "You're super wise", object_with_literal: { nested_literal: { my_literal: "How super cool" } - }, - stream: false, - query: "What is the weather today" + } ) diff --git a/seed/ruby-sdk-v2/literal/dynamic-snippets/example6/snippet.rb b/seed/ruby-sdk-v2/literal/dynamic-snippets/example6/snippet.rb index efa0d849a8da..2a1e003b5126 100644 --- a/seed/ruby-sdk-v2/literal/dynamic-snippets/example6/snippet.rb +++ b/seed/ruby-sdk-v2/literal/dynamic-snippets/example6/snippet.rb @@ -7,9 +7,9 @@ optional_prompt: "You are a helpful assistant", alias_prompt: "You are a helpful assistant", alias_optional_prompt: "You are a helpful assistant", + query: "What is the weather today", stream: false, optional_stream: false, alias_stream: false, - alias_optional_stream: false, - query: "What is the weather today" + alias_optional_stream: false ) diff --git a/seed/ruby-sdk-v2/literal/reference.md b/seed/ruby-sdk-v2/literal/reference.md index 560ca5c55979..8d4534a3d36e 100644 --- a/seed/ruby-sdk-v2/literal/reference.md +++ b/seed/ruby-sdk-v2/literal/reference.md @@ -83,18 +83,18 @@ client.headers.send_( ```ruby client.inlined.send_( - temperature: 10.1, prompt: "You are a helpful assistant", context: "You're super wise", + query: "What is the weather today", + temperature: 10.1, + stream: false, aliased_context: "You're super wise", maybe_context: "You're super wise", object_with_literal: { nested_literal: { my_literal: "How super cool" } - }, - stream: false, - query: "What is the weather today" + } ) ``` @@ -254,11 +254,11 @@ client.query.send_( optional_prompt: "You are a helpful assistant", alias_prompt: "You are a helpful assistant", alias_optional_prompt: "You are a helpful assistant", + query: "What is the weather today", stream: false, optional_stream: false, alias_stream: false, - alias_optional_stream: false, - query: "What is the weather today" + alias_optional_stream: false ) ``` diff --git a/seed/ruby-sdk-v2/package-yml/README.md b/seed/ruby-sdk-v2/package-yml/README.md index 0dcb8baa0a7a..f549001282af 100644 --- a/seed/ruby-sdk-v2/package-yml/README.md +++ b/seed/ruby-sdk-v2/package-yml/README.md @@ -31,6 +31,7 @@ require "seed" client = Seed::Client.new client.echo( + id: "id-ksfd9c1", name: "Hello world!", size: 20 ) diff --git a/seed/ruby-sdk-v2/package-yml/dynamic-snippets/example0/snippet.rb b/seed/ruby-sdk-v2/package-yml/dynamic-snippets/example0/snippet.rb index 0dfbff0207c4..89d500a2de18 100644 --- a/seed/ruby-sdk-v2/package-yml/dynamic-snippets/example0/snippet.rb +++ b/seed/ruby-sdk-v2/package-yml/dynamic-snippets/example0/snippet.rb @@ -3,6 +3,7 @@ client = Seed::Client.new(base_url: "https://api.fern.com") client.echo( + id: "id-ksfd9c1", name: "Hello world!", size: 20 ) diff --git a/seed/ruby-sdk-v2/package-yml/dynamic-snippets/example1/snippet.rb b/seed/ruby-sdk-v2/package-yml/dynamic-snippets/example1/snippet.rb index 0b83d48f2cd4..75c92cf254c2 100644 --- a/seed/ruby-sdk-v2/package-yml/dynamic-snippets/example1/snippet.rb +++ b/seed/ruby-sdk-v2/package-yml/dynamic-snippets/example1/snippet.rb @@ -3,6 +3,7 @@ client = Seed::Client.new(base_url: "https://api.fern.com") client.echo( + id: "id", name: "name", size: 1 ) diff --git a/seed/ruby-sdk-v2/package-yml/dynamic-snippets/example2/snippet.rb b/seed/ruby-sdk-v2/package-yml/dynamic-snippets/example2/snippet.rb index 062b82eb276d..52888ef8fde8 100644 --- a/seed/ruby-sdk-v2/package-yml/dynamic-snippets/example2/snippet.rb +++ b/seed/ruby-sdk-v2/package-yml/dynamic-snippets/example2/snippet.rb @@ -2,4 +2,7 @@ client = Seed::Client.new(base_url: "https://api.fern.com") -client.service.nop(nested_id: "id-219xca8") +client.service.nop( + id: "id-a2ijs82", + nested_id: "id-219xca8" +) diff --git a/seed/ruby-sdk-v2/package-yml/dynamic-snippets/example3/snippet.rb b/seed/ruby-sdk-v2/package-yml/dynamic-snippets/example3/snippet.rb index 4edaac2e2c87..2a6097607b94 100644 --- a/seed/ruby-sdk-v2/package-yml/dynamic-snippets/example3/snippet.rb +++ b/seed/ruby-sdk-v2/package-yml/dynamic-snippets/example3/snippet.rb @@ -2,4 +2,7 @@ client = Seed::Client.new(base_url: "https://api.fern.com") -client.service.nop(nested_id: "nestedId") +client.service.nop( + id: "id", + nested_id: "nestedId" +) diff --git a/seed/ruby-sdk-v2/package-yml/reference.md b/seed/ruby-sdk-v2/package-yml/reference.md index e709301cbcdf..09c00f5a15ba 100644 --- a/seed/ruby-sdk-v2/package-yml/reference.md +++ b/seed/ruby-sdk-v2/package-yml/reference.md @@ -13,6 +13,7 @@ ```ruby client.echo( + id: "id-ksfd9c1", name: "Hello world!", size: 20 ) @@ -72,7 +73,10 @@ client.echo(
```ruby -client.service.nop(nested_id: "id-219xca8") +client.service.nop( + id: "id-a2ijs82", + nested_id: "id-219xca8" +) ```
diff --git a/seed/ruby-sdk-v2/path-parameters/README.md b/seed/ruby-sdk-v2/path-parameters/README.md index 85f534f6fffa..8cc9a7564d12 100644 --- a/seed/ruby-sdk-v2/path-parameters/README.md +++ b/seed/ruby-sdk-v2/path-parameters/README.md @@ -31,6 +31,7 @@ require "seed" client = Seed::Client.new client.user.create_user( + tenant_id: "tenant_id", name: "name", tags: %w[tags tags] ) diff --git a/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example0/snippet.rb b/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example0/snippet.rb index 232d188c02f3..385aef8c0101 100644 --- a/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example0/snippet.rb +++ b/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example0/snippet.rb @@ -2,4 +2,7 @@ client = Seed::Client.new(base_url: "https://api.fern.com") -client.organizations.get_organization(organization_id: "organization_id") +client.organizations.get_organization( + tenant_id: "tenant_id", + organization_id: "organization_id" +) diff --git a/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example1/snippet.rb b/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example1/snippet.rb index 1567122ed1d4..4bfd3167903b 100644 --- a/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example1/snippet.rb +++ b/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example1/snippet.rb @@ -3,6 +3,7 @@ client = Seed::Client.new(base_url: "https://api.fern.com") client.organizations.get_organization_user( + tenant_id: "tenant_id", organization_id: "organization_id", user_id: "user_id" ) diff --git a/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example2/snippet.rb b/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example2/snippet.rb index 7ece2891fc9c..6867d81381cb 100644 --- a/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example2/snippet.rb +++ b/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example2/snippet.rb @@ -3,6 +3,7 @@ client = Seed::Client.new(base_url: "https://api.fern.com") client.organizations.search_organizations( + tenant_id: "tenant_id", organization_id: "organization_id", limit: 1 ) diff --git a/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example3/snippet.rb b/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example3/snippet.rb index c0de6563b97d..769402b2f365 100644 --- a/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example3/snippet.rb +++ b/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example3/snippet.rb @@ -2,4 +2,7 @@ client = Seed::Client.new(base_url: "https://api.fern.com") -client.user.get_user(user_id: "user_id") +client.user.get_user( + tenant_id: "tenant_id", + user_id: "user_id" +) diff --git a/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example4/snippet.rb b/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example4/snippet.rb index 29d1e53c3e42..add6e56d3eda 100644 --- a/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example4/snippet.rb +++ b/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example4/snippet.rb @@ -3,6 +3,7 @@ client = Seed::Client.new(base_url: "https://api.fern.com") client.user.create_user( + tenant_id: "tenant_id", name: "name", tags: %w[tags tags] ) diff --git a/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example5/snippet.rb b/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example5/snippet.rb index 003f5a4b5832..e9d6ec85dbe8 100644 --- a/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example5/snippet.rb +++ b/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example5/snippet.rb @@ -3,6 +3,7 @@ client = Seed::Client.new(base_url: "https://api.fern.com") client.user.update_user( + tenant_id: "tenant_id", user_id: "user_id", name: "name", tags: %w[tags tags] diff --git a/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example6/snippet.rb b/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example6/snippet.rb index 800f8d55f135..9a5b16cb5682 100644 --- a/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example6/snippet.rb +++ b/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example6/snippet.rb @@ -3,6 +3,7 @@ client = Seed::Client.new(base_url: "https://api.fern.com") client.user.search_users( + tenant_id: "tenant_id", user_id: "user_id", limit: 1 ) diff --git a/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example7/snippet.rb b/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example7/snippet.rb index b7800e61d52b..302b9561172f 100644 --- a/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example7/snippet.rb +++ b/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example7/snippet.rb @@ -3,6 +3,7 @@ client = Seed::Client.new(base_url: "https://api.fern.com") client.user.get_user_metadata( + tenant_id: "tenant_id", user_id: "user_id", version: 1 ) diff --git a/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example8/snippet.rb b/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example8/snippet.rb index 16ecb4c3a2c6..7990b9e59a3d 100644 --- a/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example8/snippet.rb +++ b/seed/ruby-sdk-v2/path-parameters/dynamic-snippets/example8/snippet.rb @@ -3,6 +3,7 @@ client = Seed::Client.new(base_url: "https://api.fern.com") client.user.get_user_specifics( + tenant_id: "tenant_id", user_id: "user_id", version: 1, thought: "thought" diff --git a/seed/ruby-sdk-v2/path-parameters/reference.md b/seed/ruby-sdk-v2/path-parameters/reference.md index d9a3110eb718..f4b7b70b6de3 100644 --- a/seed/ruby-sdk-v2/path-parameters/reference.md +++ b/seed/ruby-sdk-v2/path-parameters/reference.md @@ -13,7 +13,10 @@
```ruby -client.organizations.get_organization(organization_id: "organization_id") +client.organizations.get_organization( + tenant_id: "tenant_id", + organization_id: "organization_id" +) ```
@@ -70,6 +73,7 @@ client.organizations.get_organization(organization_id: "organization_id") ```ruby client.organizations.get_organization_user( + tenant_id: "tenant_id", organization_id: "organization_id", user_id: "user_id" ) @@ -137,6 +141,7 @@ client.organizations.get_organization_user( ```ruby client.organizations.search_organizations( + tenant_id: "tenant_id", organization_id: "organization_id", limit: 1 ) @@ -204,7 +209,10 @@ client.organizations.search_organizations(
```ruby -client.user.get_user(user_id: "user_id") +client.user.get_user( + tenant_id: "tenant_id", + user_id: "user_id" +) ```
@@ -261,6 +269,7 @@ client.user.get_user(user_id: "user_id") ```ruby client.user.create_user( + tenant_id: "tenant_id", name: "name", tags: %w[tags tags] ) @@ -320,6 +329,7 @@ client.user.create_user( ```ruby client.user.update_user( + tenant_id: "tenant_id", user_id: "user_id", name: "name", tags: %w[tags tags] @@ -388,6 +398,7 @@ client.user.update_user( ```ruby client.user.search_users( + tenant_id: "tenant_id", user_id: "user_id", limit: 1 ) @@ -469,6 +480,7 @@ Test endpoint with path parameter that has a text prefix (v{version}) ```ruby client.user.get_user_metadata( + tenant_id: "tenant_id", user_id: "user_id", version: 1 ) @@ -550,6 +562,7 @@ Test endpoint with path parameters listed in different order than found in path ```ruby client.user.get_user_specifics( + tenant_id: "tenant_id", user_id: "user_id", version: 1, thought: "thought" diff --git a/seed/swift-sdk/api-wide-base-path/README.md b/seed/swift-sdk/api-wide-base-path/README.md index fcd163bb995a..10656166b2d6 100644 --- a/seed/swift-sdk/api-wide-base-path/README.md +++ b/seed/swift-sdk/api-wide-base-path/README.md @@ -56,7 +56,7 @@ private func main() async throws { _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam" ) } diff --git a/seed/swift-sdk/api-wide-base-path/Snippets/Example0.swift b/seed/swift-sdk/api-wide-base-path/Snippets/Example0.swift index 2929378dc237..933a30eed54f 100644 --- a/seed/swift-sdk/api-wide-base-path/Snippets/Example0.swift +++ b/seed/swift-sdk/api-wide-base-path/Snippets/Example0.swift @@ -7,7 +7,7 @@ private func main() async throws { _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam" ) } diff --git a/seed/swift-sdk/api-wide-base-path/Tests/Core/ClientErrorTests.swift b/seed/swift-sdk/api-wide-base-path/Tests/Core/ClientErrorTests.swift index 7a6b6ffe866d..fdf2a31832cc 100644 --- a/seed/swift-sdk/api-wide-base-path/Tests/Core/ClientErrorTests.swift +++ b/seed/swift-sdk/api-wide-base-path/Tests/Core/ClientErrorTests.swift @@ -22,7 +22,7 @@ import Testing _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) @@ -58,7 +58,7 @@ import Testing _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) @@ -94,7 +94,7 @@ import Testing _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) @@ -132,7 +132,7 @@ import Testing _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) @@ -168,7 +168,7 @@ import Testing _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) @@ -206,7 +206,7 @@ import Testing _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) @@ -242,7 +242,7 @@ import Testing _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) diff --git a/seed/swift-sdk/api-wide-base-path/Tests/Core/ClientRetryTests.swift b/seed/swift-sdk/api-wide-base-path/Tests/Core/ClientRetryTests.swift index d90e914e891a..250205be9123 100644 --- a/seed/swift-sdk/api-wide-base-path/Tests/Core/ClientRetryTests.swift +++ b/seed/swift-sdk/api-wide-base-path/Tests/Core/ClientRetryTests.swift @@ -23,7 +23,7 @@ import Testing _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) @@ -53,7 +53,7 @@ import Testing _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) @@ -83,7 +83,7 @@ import Testing _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) @@ -112,7 +112,7 @@ import Testing _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) @@ -140,7 +140,7 @@ import Testing _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) @@ -169,7 +169,7 @@ import Testing _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) @@ -198,7 +198,7 @@ import Testing _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) @@ -232,7 +232,7 @@ import Testing _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) @@ -276,7 +276,7 @@ import Testing _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) @@ -316,7 +316,7 @@ import Testing _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) @@ -367,7 +367,7 @@ import Testing _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam", requestOptions: RequestOptions(maxRetries: 5, additionalHeaders: stub.headers) ) @@ -392,7 +392,7 @@ import Testing _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam", requestOptions: RequestOptions(maxRetries: 0, additionalHeaders: stub.headers) ) @@ -421,7 +421,7 @@ import Testing _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) diff --git a/seed/swift-sdk/api-wide-base-path/reference.md b/seed/swift-sdk/api-wide-base-path/reference.md index 4afd8848393e..a762f250b09e 100644 --- a/seed/swift-sdk/api-wide-base-path/reference.md +++ b/seed/swift-sdk/api-wide-base-path/reference.md @@ -22,7 +22,7 @@ private func main() async throws { _ = try await client.service.post( pathParam: "pathParam", serviceParam: "serviceParam", - endpointParam: 1, + endpointParam: "1", resourceParam: "resourceParam" ) } diff --git a/seed/swift-sdk/enum/Snippets/Example3.swift b/seed/swift-sdk/enum/Snippets/Example3.swift index fce5f16de3de..8bfc58f0eabd 100644 --- a/seed/swift-sdk/enum/Snippets/Example3.swift +++ b/seed/swift-sdk/enum/Snippets/Example3.swift @@ -5,10 +5,8 @@ private func main() async throws { let client = EnumClient(baseURL: "https://api.fern.com") _ = try await client.pathParam.send( - operand: .greaterThan, - operandOrColor: ColorOrOperand.color( - .red - ) + operand: ">", + operandOrColor: "red" ) } diff --git a/seed/swift-sdk/enum/Snippets/Example4.swift b/seed/swift-sdk/enum/Snippets/Example4.swift index fce5f16de3de..8bfc58f0eabd 100644 --- a/seed/swift-sdk/enum/Snippets/Example4.swift +++ b/seed/swift-sdk/enum/Snippets/Example4.swift @@ -5,10 +5,8 @@ private func main() async throws { let client = EnumClient(baseURL: "https://api.fern.com") _ = try await client.pathParam.send( - operand: .greaterThan, - operandOrColor: ColorOrOperand.color( - .red - ) + operand: ">", + operandOrColor: "red" ) } diff --git a/seed/swift-sdk/enum/reference.md b/seed/swift-sdk/enum/reference.md index 852c539dfe0a..ef5956b5388b 100644 --- a/seed/swift-sdk/enum/reference.md +++ b/seed/swift-sdk/enum/reference.md @@ -134,10 +134,8 @@ private func main() async throws { let client = EnumClient() _ = try await client.pathParam.send( - operand: .greaterThan, - operandOrColor: ColorOrOperand.color( - .red - ) + operand: ">", + operandOrColor: "red" ) } diff --git a/seed/swift-sdk/exhaustive/Snippets/Example42.swift b/seed/swift-sdk/exhaustive/Snippets/Example42.swift index 3b405afd5404..201d4e41eb47 100644 --- a/seed/swift-sdk/exhaustive/Snippets/Example42.swift +++ b/seed/swift-sdk/exhaustive/Snippets/Example42.swift @@ -7,7 +7,7 @@ private func main() async throws { token: "" ) - _ = try await client.endpoints.params.getWithBooleanPath(param: true) + _ = try await client.endpoints.params.getWithBooleanPath(param: "true") } try await main() diff --git a/seed/swift-sdk/exhaustive/Tests/Wire/Resources/Endpoints/Params/ParamsClientWireTests.swift b/seed/swift-sdk/exhaustive/Tests/Wire/Resources/Endpoints/Params/ParamsClientWireTests.swift index ccb69dfff7b0..abcf79a0f06c 100644 --- a/seed/swift-sdk/exhaustive/Tests/Wire/Resources/Endpoints/Params/ParamsClientWireTests.swift +++ b/seed/swift-sdk/exhaustive/Tests/Wire/Resources/Endpoints/Params/ParamsClientWireTests.swift @@ -136,7 +136,7 @@ import Exhaustive ) let expectedResponse = "string" let response = try await client.endpoints.params.getWithBooleanPath( - param: true, + param: "true", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) try #require(response == expectedResponse) diff --git a/seed/swift-sdk/exhaustive/reference.md b/seed/swift-sdk/exhaustive/reference.md index ca56f125643e..d1165ae88997 100644 --- a/seed/swift-sdk/exhaustive/reference.md +++ b/seed/swift-sdk/exhaustive/reference.md @@ -2727,7 +2727,7 @@ import Exhaustive private func main() async throws { let client = ExhaustiveClient(token: "") - _ = try await client.endpoints.params.getWithBooleanPath(param: true) + _ = try await client.endpoints.params.getWithBooleanPath(param: "true") } try await main() diff --git a/seed/swift-sdk/path-parameters/Snippets/Example1.swift b/seed/swift-sdk/path-parameters/Snippets/Example1.swift index e9571e7277f3..c383a80e8abd 100644 --- a/seed/swift-sdk/path-parameters/Snippets/Example1.swift +++ b/seed/swift-sdk/path-parameters/Snippets/Example1.swift @@ -5,6 +5,7 @@ private func main() async throws { let client = PathParametersClient(baseURL: "https://api.fern.com") _ = try await client.organizations.getOrganizationUser( + tenantId: "tenant_id", organizationId: "organization_id", userId: "user_id" ) diff --git a/seed/swift-sdk/path-parameters/Snippets/Example2.swift b/seed/swift-sdk/path-parameters/Snippets/Example2.swift index e66ef2de487a..12440cc17f27 100644 --- a/seed/swift-sdk/path-parameters/Snippets/Example2.swift +++ b/seed/swift-sdk/path-parameters/Snippets/Example2.swift @@ -5,6 +5,7 @@ private func main() async throws { let client = PathParametersClient(baseURL: "https://api.fern.com") _ = try await client.organizations.searchOrganizations( + tenantId: "tenant_id", organizationId: "organization_id", limit: 1 ) diff --git a/seed/swift-sdk/path-parameters/Snippets/Example3.swift b/seed/swift-sdk/path-parameters/Snippets/Example3.swift index e5f360bc26c3..67e6ca13ac57 100644 --- a/seed/swift-sdk/path-parameters/Snippets/Example3.swift +++ b/seed/swift-sdk/path-parameters/Snippets/Example3.swift @@ -4,7 +4,10 @@ import PathParameters private func main() async throws { let client = PathParametersClient(baseURL: "https://api.fern.com") - _ = try await client.user.getUser(userId: "user_id") + _ = try await client.user.getUser( + tenantId: "tenant_id", + userId: "user_id" + ) } try await main() diff --git a/seed/swift-sdk/path-parameters/Snippets/Example5.swift b/seed/swift-sdk/path-parameters/Snippets/Example5.swift index 8610bc7af67f..25568c5d1676 100644 --- a/seed/swift-sdk/path-parameters/Snippets/Example5.swift +++ b/seed/swift-sdk/path-parameters/Snippets/Example5.swift @@ -5,6 +5,7 @@ private func main() async throws { let client = PathParametersClient(baseURL: "https://api.fern.com") _ = try await client.user.updateUser( + tenantId: "tenant_id", userId: "user_id", request: User( name: "name", diff --git a/seed/swift-sdk/path-parameters/Snippets/Example6.swift b/seed/swift-sdk/path-parameters/Snippets/Example6.swift index e5bb1c0df83f..d2fce82508bc 100644 --- a/seed/swift-sdk/path-parameters/Snippets/Example6.swift +++ b/seed/swift-sdk/path-parameters/Snippets/Example6.swift @@ -5,6 +5,7 @@ private func main() async throws { let client = PathParametersClient(baseURL: "https://api.fern.com") _ = try await client.user.searchUsers( + tenantId: "tenant_id", userId: "user_id", limit: 1 ) diff --git a/seed/swift-sdk/path-parameters/Snippets/Example7.swift b/seed/swift-sdk/path-parameters/Snippets/Example7.swift index 0699d9888990..52d69859c4c8 100644 --- a/seed/swift-sdk/path-parameters/Snippets/Example7.swift +++ b/seed/swift-sdk/path-parameters/Snippets/Example7.swift @@ -5,8 +5,9 @@ private func main() async throws { let client = PathParametersClient(baseURL: "https://api.fern.com") _ = try await client.user.getUserMetadata( + tenantId: "tenant_id", userId: "user_id", - version: 1 + version: "1" ) } diff --git a/seed/swift-sdk/path-parameters/Snippets/Example8.swift b/seed/swift-sdk/path-parameters/Snippets/Example8.swift index 23f39cda42a9..9368f5ed918d 100644 --- a/seed/swift-sdk/path-parameters/Snippets/Example8.swift +++ b/seed/swift-sdk/path-parameters/Snippets/Example8.swift @@ -5,8 +5,9 @@ private func main() async throws { let client = PathParametersClient(baseURL: "https://api.fern.com") _ = try await client.user.getUserSpecifics( + tenantId: "tenant_id", userId: "user_id", - version: 1, + version: "1", thought: "thought" ) } diff --git a/seed/swift-sdk/path-parameters/Tests/Wire/Resources/Organizations/OrganizationsClientWireTests.swift b/seed/swift-sdk/path-parameters/Tests/Wire/Resources/Organizations/OrganizationsClientWireTests.swift index 26e36a59c202..e818eb131576 100644 --- a/seed/swift-sdk/path-parameters/Tests/Wire/Resources/Organizations/OrganizationsClientWireTests.swift +++ b/seed/swift-sdk/path-parameters/Tests/Wire/Resources/Organizations/OrganizationsClientWireTests.swift @@ -64,6 +64,7 @@ import PathParameters ] ) let response = try await client.organizations.getOrganizationUser( + tenantId: "tenant_id", organizationId: "organization_id", userId: "user_id", requestOptions: RequestOptions(additionalHeaders: stub.headers) @@ -116,6 +117,7 @@ import PathParameters ) ] let response = try await client.organizations.searchOrganizations( + tenantId: "tenant_id", organizationId: "organization_id", limit: 1, requestOptions: RequestOptions(additionalHeaders: stub.headers) diff --git a/seed/swift-sdk/path-parameters/Tests/Wire/Resources/User/UserClientWireTests.swift b/seed/swift-sdk/path-parameters/Tests/Wire/Resources/User/UserClientWireTests.swift index fe4af42a3737..f196eb11765c 100644 --- a/seed/swift-sdk/path-parameters/Tests/Wire/Resources/User/UserClientWireTests.swift +++ b/seed/swift-sdk/path-parameters/Tests/Wire/Resources/User/UserClientWireTests.swift @@ -30,6 +30,7 @@ import PathParameters ] ) let response = try await client.user.getUser( + tenantId: "tenant_id", userId: "user_id", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) @@ -103,6 +104,7 @@ import PathParameters ] ) let response = try await client.user.updateUser( + tenantId: "tenant_id", userId: "user_id", request: User( name: "name", @@ -161,6 +163,7 @@ import PathParameters ) ] let response = try await client.user.searchUsers( + tenantId: "tenant_id", userId: "user_id", limit: 1, requestOptions: RequestOptions(additionalHeaders: stub.headers) @@ -195,8 +198,9 @@ import PathParameters ] ) let response = try await client.user.getUserMetadata( + tenantId: "tenant_id", userId: "user_id", - version: 1, + version: "1", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) try #require(response == expectedResponse) @@ -229,8 +233,9 @@ import PathParameters ] ) let response = try await client.user.getUserSpecifics( + tenantId: "tenant_id", userId: "user_id", - version: 1, + version: "1", thought: "thought", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) diff --git a/seed/swift-sdk/path-parameters/reference.md b/seed/swift-sdk/path-parameters/reference.md index 0322090ddfa4..f32a79eef089 100644 --- a/seed/swift-sdk/path-parameters/reference.md +++ b/seed/swift-sdk/path-parameters/reference.md @@ -88,6 +88,7 @@ private func main() async throws { let client = PathParametersClient() _ = try await client.organizations.getOrganizationUser( + tenantId: "tenant_id", organizationId: "organization_id", userId: "user_id" ) @@ -164,6 +165,7 @@ private func main() async throws { let client = PathParametersClient() _ = try await client.organizations.searchOrganizations( + tenantId: "tenant_id", organizationId: "organization_id", limit: 1 ) @@ -240,7 +242,10 @@ import PathParameters private func main() async throws { let client = PathParametersClient() - _ = try await client.user.getUser(userId: "user_id") + _ = try await client.user.getUser( + tenantId: "tenant_id", + userId: "user_id" + ) } try await main() @@ -380,6 +385,7 @@ private func main() async throws { let client = PathParametersClient() _ = try await client.user.updateUser( + tenantId: "tenant_id", userId: "user_id", request: User( name: "name", @@ -462,6 +468,7 @@ private func main() async throws { let client = PathParametersClient() _ = try await client.user.searchUsers( + tenantId: "tenant_id", userId: "user_id", limit: 1 ) @@ -552,8 +559,9 @@ private func main() async throws { let client = PathParametersClient() _ = try await client.user.getUserMetadata( + tenantId: "tenant_id", userId: "user_id", - version: 1 + version: "1" ) } @@ -642,8 +650,9 @@ private func main() async throws { let client = PathParametersClient() _ = try await client.user.getUserSpecifics( + tenantId: "tenant_id", userId: "user_id", - version: 1, + version: "1", thought: "thought" ) } diff --git a/seed/swift-sdk/trace/README.md b/seed/swift-sdk/trace/README.md index 72295d7318b7..2ee22a0a1035 100644 --- a/seed/swift-sdk/trace/README.md +++ b/seed/swift-sdk/trace/README.md @@ -56,7 +56,7 @@ private func main() async throws { let client = TraceClient(token: "") _ = try await client.admin.updateTestSubmissionStatus( - submissionId: UUID(uuidString: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")!, + submissionId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: TestSubmissionStatus.stopped ) } diff --git a/seed/swift-sdk/trace/Snippets/Example1.swift b/seed/swift-sdk/trace/Snippets/Example1.swift index 718c5e749030..8236955bf289 100644 --- a/seed/swift-sdk/trace/Snippets/Example1.swift +++ b/seed/swift-sdk/trace/Snippets/Example1.swift @@ -8,7 +8,7 @@ private func main() async throws { ) _ = try await client.admin.updateTestSubmissionStatus( - submissionId: UUID(uuidString: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")!, + submissionId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: TestSubmissionStatus.stopped ) } diff --git a/seed/swift-sdk/trace/Snippets/Example12.swift b/seed/swift-sdk/trace/Snippets/Example12.swift index 89e87076aca7..16189811253c 100644 --- a/seed/swift-sdk/trace/Snippets/Example12.swift +++ b/seed/swift-sdk/trace/Snippets/Example12.swift @@ -8,7 +8,7 @@ private func main() async throws { ) _ = try await client.playlist.createPlaylist( - serviceParam: 1, + serviceParam: "1", datetime: try! Date("2024-01-15T09:30:00Z", strategy: .iso8601), optionalDatetime: try! Date("2024-01-15T09:30:00Z", strategy: .iso8601), request: PlaylistCreateRequest( diff --git a/seed/swift-sdk/trace/Snippets/Example13.swift b/seed/swift-sdk/trace/Snippets/Example13.swift index 7bd6f4e9e0c0..c579f8c902a6 100644 --- a/seed/swift-sdk/trace/Snippets/Example13.swift +++ b/seed/swift-sdk/trace/Snippets/Example13.swift @@ -8,7 +8,7 @@ private func main() async throws { ) _ = try await client.playlist.getPlaylists( - serviceParam: 1, + serviceParam: "1", limit: 1, otherField: "otherField", multiLineDocs: "multiLineDocs" diff --git a/seed/swift-sdk/trace/Snippets/Example14.swift b/seed/swift-sdk/trace/Snippets/Example14.swift index e961ded25a88..f6c82e5e1536 100644 --- a/seed/swift-sdk/trace/Snippets/Example14.swift +++ b/seed/swift-sdk/trace/Snippets/Example14.swift @@ -8,7 +8,7 @@ private func main() async throws { ) _ = try await client.playlist.getPlaylist( - serviceParam: 1, + serviceParam: "1", playlistId: "playlistId" ) } diff --git a/seed/swift-sdk/trace/Snippets/Example15.swift b/seed/swift-sdk/trace/Snippets/Example15.swift index e961ded25a88..f6c82e5e1536 100644 --- a/seed/swift-sdk/trace/Snippets/Example15.swift +++ b/seed/swift-sdk/trace/Snippets/Example15.swift @@ -8,7 +8,7 @@ private func main() async throws { ) _ = try await client.playlist.getPlaylist( - serviceParam: 1, + serviceParam: "1", playlistId: "playlistId" ) } diff --git a/seed/swift-sdk/trace/Snippets/Example16.swift b/seed/swift-sdk/trace/Snippets/Example16.swift index e961ded25a88..f6c82e5e1536 100644 --- a/seed/swift-sdk/trace/Snippets/Example16.swift +++ b/seed/swift-sdk/trace/Snippets/Example16.swift @@ -8,7 +8,7 @@ private func main() async throws { ) _ = try await client.playlist.getPlaylist( - serviceParam: 1, + serviceParam: "1", playlistId: "playlistId" ) } diff --git a/seed/swift-sdk/trace/Snippets/Example17.swift b/seed/swift-sdk/trace/Snippets/Example17.swift index e6483fa3aad8..9389cf1bf3e4 100644 --- a/seed/swift-sdk/trace/Snippets/Example17.swift +++ b/seed/swift-sdk/trace/Snippets/Example17.swift @@ -8,7 +8,7 @@ private func main() async throws { ) _ = try await client.playlist.updatePlaylist( - serviceParam: 1, + serviceParam: "1", playlistId: "playlistId", request: UpdatePlaylistRequest( name: "name", diff --git a/seed/swift-sdk/trace/Snippets/Example18.swift b/seed/swift-sdk/trace/Snippets/Example18.swift index e6483fa3aad8..9389cf1bf3e4 100644 --- a/seed/swift-sdk/trace/Snippets/Example18.swift +++ b/seed/swift-sdk/trace/Snippets/Example18.swift @@ -8,7 +8,7 @@ private func main() async throws { ) _ = try await client.playlist.updatePlaylist( - serviceParam: 1, + serviceParam: "1", playlistId: "playlistId", request: UpdatePlaylistRequest( name: "name", diff --git a/seed/swift-sdk/trace/Snippets/Example19.swift b/seed/swift-sdk/trace/Snippets/Example19.swift index ad9896e2d361..601594f4eea1 100644 --- a/seed/swift-sdk/trace/Snippets/Example19.swift +++ b/seed/swift-sdk/trace/Snippets/Example19.swift @@ -8,7 +8,7 @@ private func main() async throws { ) _ = try await client.playlist.deletePlaylist( - serviceParam: 1, + serviceParam: "1", playlistId: "playlist_id" ) } diff --git a/seed/swift-sdk/trace/Snippets/Example2.swift b/seed/swift-sdk/trace/Snippets/Example2.swift index f286b5d42f28..8a619a3ce11d 100644 --- a/seed/swift-sdk/trace/Snippets/Example2.swift +++ b/seed/swift-sdk/trace/Snippets/Example2.swift @@ -8,7 +8,7 @@ private func main() async throws { ) _ = try await client.admin.sendTestSubmissionUpdate( - submissionId: UUID(uuidString: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")!, + submissionId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: TestSubmissionUpdate( updateTime: try! Date("2024-01-15T09:30:00Z", strategy: .iso8601), updateInfo: TestSubmissionUpdateInfo.running( diff --git a/seed/swift-sdk/trace/Snippets/Example24.swift b/seed/swift-sdk/trace/Snippets/Example24.swift index 60db2ab4a269..b990c9880013 100644 --- a/seed/swift-sdk/trace/Snippets/Example24.swift +++ b/seed/swift-sdk/trace/Snippets/Example24.swift @@ -7,7 +7,7 @@ private func main() async throws { token: "" ) - _ = try await client.submission.createExecutionSession(language: .java) + _ = try await client.submission.createExecutionSession(language: "JAVA") } try await main() diff --git a/seed/swift-sdk/trace/Snippets/Example28.swift b/seed/swift-sdk/trace/Snippets/Example28.swift index 45a060ca59da..d19fe97fcb01 100644 --- a/seed/swift-sdk/trace/Snippets/Example28.swift +++ b/seed/swift-sdk/trace/Snippets/Example28.swift @@ -8,8 +8,8 @@ private func main() async throws { ) _ = try await client.sysprop.setNumWarmInstances( - language: .java, - numWarmInstances: 1 + language: "JAVA", + numWarmInstances: "1" ) } diff --git a/seed/swift-sdk/trace/Snippets/Example3.swift b/seed/swift-sdk/trace/Snippets/Example3.swift index f63f9e28adbc..5b579f7ae364 100644 --- a/seed/swift-sdk/trace/Snippets/Example3.swift +++ b/seed/swift-sdk/trace/Snippets/Example3.swift @@ -8,7 +8,7 @@ private func main() async throws { ) _ = try await client.admin.updateWorkspaceSubmissionStatus( - submissionId: UUID(uuidString: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")!, + submissionId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: WorkspaceSubmissionStatus.stopped ) } diff --git a/seed/swift-sdk/trace/Snippets/Example33.swift b/seed/swift-sdk/trace/Snippets/Example33.swift index 9413f7723282..6f3c704086cb 100644 --- a/seed/swift-sdk/trace/Snippets/Example33.swift +++ b/seed/swift-sdk/trace/Snippets/Example33.swift @@ -9,7 +9,7 @@ private func main() async throws { _ = try await client.v2.problem.getProblemVersion( problemId: "problemId", - problemVersion: 1 + problemVersion: "1" ) } diff --git a/seed/swift-sdk/trace/Snippets/Example37.swift b/seed/swift-sdk/trace/Snippets/Example37.swift index 8c5f76f97169..9ad599aab9a6 100644 --- a/seed/swift-sdk/trace/Snippets/Example37.swift +++ b/seed/swift-sdk/trace/Snippets/Example37.swift @@ -9,7 +9,7 @@ private func main() async throws { _ = try await client.v2.v3.problem.getProblemVersion( problemId: "problemId", - problemVersion: 1 + problemVersion: "1" ) } diff --git a/seed/swift-sdk/trace/Snippets/Example4.swift b/seed/swift-sdk/trace/Snippets/Example4.swift index d3e392f5d6d9..9328efbdb635 100644 --- a/seed/swift-sdk/trace/Snippets/Example4.swift +++ b/seed/swift-sdk/trace/Snippets/Example4.swift @@ -8,7 +8,7 @@ private func main() async throws { ) _ = try await client.admin.sendWorkspaceSubmissionUpdate( - submissionId: UUID(uuidString: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")!, + submissionId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: WorkspaceSubmissionUpdate( updateTime: try! Date("2024-01-15T09:30:00Z", strategy: .iso8601), updateInfo: WorkspaceSubmissionUpdateInfo.running( diff --git a/seed/swift-sdk/trace/Snippets/Example5.swift b/seed/swift-sdk/trace/Snippets/Example5.swift index b2db057a8a60..57cfbcc8dcff 100644 --- a/seed/swift-sdk/trace/Snippets/Example5.swift +++ b/seed/swift-sdk/trace/Snippets/Example5.swift @@ -8,7 +8,7 @@ private func main() async throws { ) _ = try await client.admin.storeTracedTestCase( - submissionId: UUID(uuidString: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")!, + submissionId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", testCaseId: "testCaseId", request: .init( result: TestCaseResultWithStdout( diff --git a/seed/swift-sdk/trace/Snippets/Example6.swift b/seed/swift-sdk/trace/Snippets/Example6.swift index 1bca66320cac..5690e1753e2d 100644 --- a/seed/swift-sdk/trace/Snippets/Example6.swift +++ b/seed/swift-sdk/trace/Snippets/Example6.swift @@ -8,7 +8,7 @@ private func main() async throws { ) _ = try await client.admin.storeTracedTestCaseV2( - submissionId: UUID(uuidString: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")!, + submissionId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", testCaseId: "testCaseId", request: [ TraceResponseV2( diff --git a/seed/swift-sdk/trace/Snippets/Example7.swift b/seed/swift-sdk/trace/Snippets/Example7.swift index f7da6fa3ad49..d25debe26df1 100644 --- a/seed/swift-sdk/trace/Snippets/Example7.swift +++ b/seed/swift-sdk/trace/Snippets/Example7.swift @@ -8,7 +8,7 @@ private func main() async throws { ) _ = try await client.admin.storeTracedWorkspace( - submissionId: UUID(uuidString: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")!, + submissionId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: .init( workspaceRunDetails: WorkspaceRunDetails( exceptionV2: ExceptionV2.generic( diff --git a/seed/swift-sdk/trace/Snippets/Example8.swift b/seed/swift-sdk/trace/Snippets/Example8.swift index 1a25d15a9736..6ce4b604214d 100644 --- a/seed/swift-sdk/trace/Snippets/Example8.swift +++ b/seed/swift-sdk/trace/Snippets/Example8.swift @@ -8,7 +8,7 @@ private func main() async throws { ) _ = try await client.admin.storeTracedWorkspaceV2( - submissionId: UUID(uuidString: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")!, + submissionId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: [ TraceResponseV2( submissionId: UUID(uuidString: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")!, diff --git a/seed/swift-sdk/trace/Tests/Wire/Resources/Playlist/PlaylistClientWireTests.swift b/seed/swift-sdk/trace/Tests/Wire/Resources/Playlist/PlaylistClientWireTests.swift index 351c03ac9328..e5928f33ca30 100644 --- a/seed/swift-sdk/trace/Tests/Wire/Resources/Playlist/PlaylistClientWireTests.swift +++ b/seed/swift-sdk/trace/Tests/Wire/Resources/Playlist/PlaylistClientWireTests.swift @@ -35,7 +35,7 @@ import Trace ] ) let response = try await client.playlist.createPlaylist( - serviceParam: 1, + serviceParam: "1", datetime: try! Date("2024-01-15T09:30:00Z", strategy: .iso8601), optionalDatetime: try! Date("2024-01-15T09:30:00Z", strategy: .iso8601), request: PlaylistCreateRequest( @@ -104,7 +104,7 @@ import Trace ) ] let response = try await client.playlist.getPlaylists( - serviceParam: 1, + serviceParam: "1", limit: 1, otherField: "otherField", multiLineDocs: "multiLineDocs", @@ -145,7 +145,7 @@ import Trace ] ) let response = try await client.playlist.getPlaylist( - serviceParam: 1, + serviceParam: "1", playlistId: "playlistId", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) @@ -184,7 +184,7 @@ import Trace ] )) let response = try await client.playlist.updatePlaylist( - serviceParam: 1, + serviceParam: "1", playlistId: "playlistId", request: UpdatePlaylistRequest( name: "name", diff --git a/seed/swift-sdk/trace/Tests/Wire/Resources/Submission/SubmissionClientWireTests.swift b/seed/swift-sdk/trace/Tests/Wire/Resources/Submission/SubmissionClientWireTests.swift index 25fdac92a49c..ebbf89ff24aa 100644 --- a/seed/swift-sdk/trace/Tests/Wire/Resources/Submission/SubmissionClientWireTests.swift +++ b/seed/swift-sdk/trace/Tests/Wire/Resources/Submission/SubmissionClientWireTests.swift @@ -29,7 +29,7 @@ import Trace status: .creatingContainer ) let response = try await client.submission.createExecutionSession( - language: .java, + language: "JAVA", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) try #require(response == expectedResponse) diff --git a/seed/swift-sdk/trace/Tests/Wire/Resources/V2/Problem/V2ProblemClientWireTests.swift b/seed/swift-sdk/trace/Tests/Wire/Resources/V2/Problem/V2ProblemClientWireTests.swift index 22edebc837f0..4a035175f994 100644 --- a/seed/swift-sdk/trace/Tests/Wire/Resources/V2/Problem/V2ProblemClientWireTests.swift +++ b/seed/swift-sdk/trace/Tests/Wire/Resources/V2/Problem/V2ProblemClientWireTests.swift @@ -2304,7 +2304,7 @@ import Trace ) let response = try await client.v2.problem.getProblemVersion( problemId: "problemId", - problemVersion: 1, + problemVersion: "1", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) try #require(response == expectedResponse) diff --git a/seed/swift-sdk/trace/Tests/Wire/Resources/V2/V3/Problem/V3ProblemClientWireTests.swift b/seed/swift-sdk/trace/Tests/Wire/Resources/V2/V3/Problem/V3ProblemClientWireTests.swift index 8a7abcaadec7..f85c0951108c 100644 --- a/seed/swift-sdk/trace/Tests/Wire/Resources/V2/V3/Problem/V3ProblemClientWireTests.swift +++ b/seed/swift-sdk/trace/Tests/Wire/Resources/V2/V3/Problem/V3ProblemClientWireTests.swift @@ -2304,7 +2304,7 @@ import Trace ) let response = try await client.v2.v3.problem.getProblemVersion( problemId: "problemId", - problemVersion: 1, + problemVersion: "1", requestOptions: RequestOptions(additionalHeaders: stub.headers) ) try #require(response == expectedResponse) diff --git a/seed/swift-sdk/trace/reference.md b/seed/swift-sdk/trace/reference.md index ff5b0654750d..138fa59b2483 100644 --- a/seed/swift-sdk/trace/reference.md +++ b/seed/swift-sdk/trace/reference.md @@ -70,7 +70,7 @@ private func main() async throws { let client = TraceClient(token: "") _ = try await client.admin.updateTestSubmissionStatus( - submissionId: UUID(uuidString: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")!, + submissionId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: TestSubmissionStatus.stopped ) } @@ -138,7 +138,7 @@ private func main() async throws { let client = TraceClient(token: "") _ = try await client.admin.sendTestSubmissionUpdate( - submissionId: UUID(uuidString: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")!, + submissionId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: TestSubmissionUpdate( updateTime: try! Date("2024-01-15T09:30:00Z", strategy: .iso8601), updateInfo: TestSubmissionUpdateInfo.running( @@ -211,7 +211,7 @@ private func main() async throws { let client = TraceClient(token: "") _ = try await client.admin.updateWorkspaceSubmissionStatus( - submissionId: UUID(uuidString: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")!, + submissionId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: WorkspaceSubmissionStatus.stopped ) } @@ -279,7 +279,7 @@ private func main() async throws { let client = TraceClient(token: "") _ = try await client.admin.sendWorkspaceSubmissionUpdate( - submissionId: UUID(uuidString: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")!, + submissionId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: WorkspaceSubmissionUpdate( updateTime: try! Date("2024-01-15T09:30:00Z", strategy: .iso8601), updateInfo: WorkspaceSubmissionUpdateInfo.running( @@ -352,7 +352,7 @@ private func main() async throws { let client = TraceClient(token: "") _ = try await client.admin.storeTracedTestCase( - submissionId: UUID(uuidString: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")!, + submissionId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", testCaseId: "testCaseId", request: .init( result: TestCaseResultWithStdout( @@ -516,7 +516,7 @@ private func main() async throws { let client = TraceClient(token: "") _ = try await client.admin.storeTracedTestCaseV2( - submissionId: UUID(uuidString: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")!, + submissionId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", testCaseId: "testCaseId", request: [ TraceResponseV2( @@ -672,7 +672,7 @@ private func main() async throws { let client = TraceClient(token: "") _ = try await client.admin.storeTracedWorkspace( - submissionId: UUID(uuidString: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")!, + submissionId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: .init( workspaceRunDetails: WorkspaceRunDetails( exceptionV2: ExceptionV2.generic( @@ -828,7 +828,7 @@ private func main() async throws { let client = TraceClient(token: "") _ = try await client.admin.storeTracedWorkspaceV2( - submissionId: UUID(uuidString: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")!, + submissionId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: [ TraceResponseV2( submissionId: UUID(uuidString: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")!, @@ -1158,7 +1158,7 @@ private func main() async throws { let client = TraceClient(token: "") _ = try await client.playlist.createPlaylist( - serviceParam: 1, + serviceParam: "1", datetime: try! Date("2024-01-15T09:30:00Z", strategy: .iso8601), optionalDatetime: try! Date("2024-01-15T09:30:00Z", strategy: .iso8601), request: PlaylistCreateRequest( @@ -1264,7 +1264,7 @@ private func main() async throws { let client = TraceClient(token: "") _ = try await client.playlist.getPlaylists( - serviceParam: 1, + serviceParam: "1", limit: 1, otherField: "otherField", multiLineDocs: "multiLineDocs" @@ -1383,7 +1383,7 @@ private func main() async throws { let client = TraceClient(token: "") _ = try await client.playlist.getPlaylist( - serviceParam: 1, + serviceParam: "1", playlistId: "playlistId" ) } @@ -1465,7 +1465,7 @@ private func main() async throws { let client = TraceClient(token: "") _ = try await client.playlist.updatePlaylist( - serviceParam: 1, + serviceParam: "1", playlistId: "playlistId", request: UpdatePlaylistRequest( name: "name", @@ -1562,7 +1562,7 @@ private func main() async throws { let client = TraceClient(token: "") _ = try await client.playlist.deletePlaylist( - serviceParam: 1, + serviceParam: "1", playlistId: "playlist_id" ) } @@ -2105,7 +2105,7 @@ import Trace private func main() async throws { let client = TraceClient(token: "") - _ = try await client.submission.createExecutionSession(language: .java) + _ = try await client.submission.createExecutionSession(language: "JAVA") } try await main() @@ -2355,8 +2355,8 @@ private func main() async throws { let client = TraceClient(token: "") _ = try await client.sysprop.setNumWarmInstances( - language: .java, - numWarmInstances: 1 + language: "JAVA", + numWarmInstances: "1" ) } @@ -2685,7 +2685,7 @@ private func main() async throws { _ = try await client.v2.v3.problem.getProblemVersion( problemId: "problemId", - problemVersion: 1 + problemVersion: "1" ) } @@ -2965,7 +2965,7 @@ private func main() async throws { _ = try await client.v2.v3.problem.getProblemVersion( problemId: "problemId", - problemVersion: 1 + problemVersion: "1" ) }