From d7d9c30764659a467c09ec7498509c4b951a37fb Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 20 May 2026 11:51:45 +0000 Subject: [PATCH 1/6] fix(php): order parameters with default values after required parameters Co-Authored-By: David Konigsberg --- generators/php/codegen/src/ast/Method.ts | 11 ++++++++--- .../unreleased/fix-param-ordering-with-defaults.yml | 4 ++++ .../src/Widgets/WidgetsClient.php | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 generators/php/sdk/changes/unreleased/fix-param-ordering-with-defaults.yml diff --git a/generators/php/codegen/src/ast/Method.ts b/generators/php/codegen/src/ast/Method.ts index 5df8e7ec1135..53eb712f540f 100644 --- a/generators/php/codegen/src/ast/Method.ts +++ b/generators/php/codegen/src/ast/Method.ts @@ -75,9 +75,14 @@ export class Method extends AstNode { writer.write(`${this.access}${this.static_ ? " static" : ""} function ${this.name}(`); // NOTE: Put all required parameters before all optional parameters - // since this is required by PHPStan - const requiredParameters = this.parameters.filter((param) => !param.type.isOptional()); - const optionalParameters = this.parameters.filter((param) => param.type.isOptional()); + // since this is required by PHPStan. Parameters with an initializer + // (default value) are also considered optional in PHP. + const requiredParameters = this.parameters.filter( + (param) => !param.type.isOptional() && param.initializer == null + ); + const optionalParameters = this.parameters.filter( + (param) => param.type.isOptional() || param.initializer != null + ); const orderedParameters = [...requiredParameters, ...optionalParameters]; diff --git a/generators/php/sdk/changes/unreleased/fix-param-ordering-with-defaults.yml b/generators/php/sdk/changes/unreleased/fix-param-ordering-with-defaults.yml new file mode 100644 index 000000000000..1ead83f212c9 --- /dev/null +++ b/generators/php/sdk/changes/unreleased/fix-param-ordering-with-defaults.yml @@ -0,0 +1,4 @@ +- summary: | + Fix method parameter ordering to place parameters with default values after + required parameters, resolving PHPStan deprecation errors in PHP 8.0+. + type: fix diff --git a/seed/php-sdk/api-wide-base-path-with-default/src/Widgets/WidgetsClient.php b/seed/php-sdk/api-wide-base-path-with-default/src/Widgets/WidgetsClient.php index 9dce21daf53a..e1554debbe52 100644 --- a/seed/php-sdk/api-wide-base-path-with-default/src/Widgets/WidgetsClient.php +++ b/seed/php-sdk/api-wide-base-path-with-default/src/Widgets/WidgetsClient.php @@ -63,7 +63,7 @@ public function __construct( * @throws SeedException * @throws SeedApiException */ - public function create(string $apiVersion = 'v1beta', Widget $request, ?array $options = null): ?Widget + public function create(Widget $request, string $apiVersion = 'v1beta', ?array $options = null): ?Widget { $options = array_merge($this->options, $options ?? []); try { From 75c20a74ae0114bcd5e3e37db6da83c2272d90d6 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 20 May 2026 12:20:40 +0000 Subject: [PATCH 2/6] fix: reorder dynamic snippet args to match Method.ts parameter ordering Root-level path parameters (e.g. from x-fern-base-path) may have default values, making them optional in the generated method signature. The dynamic snippets generator now places these args after the body argument to match the Method.ts parameter reordering (required before defaulted). Co-Authored-By: David Konigsberg --- .../src/EndpointSnippetGenerator.ts | 51 ++++++++++++++++--- .../.fern/metadata.json | 4 +- .../api-wide-base-path-with-default/README.md | 2 +- .../reference.md | 2 +- .../src/dynamic-snippets/example0/snippet.php | 2 +- .../src/dynamic-snippets/example1/snippet.php | 2 +- 6 files changed, 49 insertions(+), 14 deletions(-) diff --git a/generators/php/dynamic-snippets/src/EndpointSnippetGenerator.ts b/generators/php/dynamic-snippets/src/EndpointSnippetGenerator.ts index 79250269c1e4..6192c96dcdd1 100644 --- a/generators/php/dynamic-snippets/src/EndpointSnippetGenerator.ts +++ b/generators/php/dynamic-snippets/src/EndpointSnippetGenerator.ts @@ -818,10 +818,17 @@ export class EndpointSnippetGenerator { const args: php.TypeLiteral[] = []; this.context.errors.scope(Scope.PathParameters); - const pathParameters = [...(this.context.ir.pathParameters ?? []), ...(request.pathParameters ?? [])]; - if (pathParameters.length > 0) { + // Endpoint-specific path parameters are always required (no defaults). + const endpointPathParameters = request.pathParameters ?? []; + // Root-level path parameters (e.g. from x-fern-base-path) may have default + // values, which makes them optional in the generated method signature. Place + // them after the body argument to match Method.ts parameter ordering. + const rootPathParameters = this.context.ir.pathParameters ?? []; + if (endpointPathParameters.length > 0) { args.push( - ...this.getPathParameters({ namedParameters: pathParameters, snippet }).map((field) => field.value) + ...this.getPathParameters({ namedParameters: endpointPathParameters, snippet }).map( + (field) => field.value + ) ); } this.context.errors.unscope(); @@ -832,6 +839,16 @@ export class EndpointSnippetGenerator { } this.context.errors.unscope(); + if (rootPathParameters.length > 0) { + this.context.errors.scope(Scope.PathParameters); + args.push( + ...this.getPathParameters({ namedParameters: rootPathParameters, snippet }).map( + (field) => field.value + ) + ); + this.context.errors.unscope(); + } + return args; } @@ -873,11 +890,24 @@ export class EndpointSnippetGenerator { const inlinePathParameters = this.context.customConfig?.inlinePathParameters ?? false; this.context.errors.scope(Scope.PathParameters); - const pathParameterFields: php.ConstructorField[] = []; - const pathParameters = [...(this.context.ir.pathParameters ?? []), ...(request.pathParameters ?? [])]; - if (pathParameters.length > 0) { - pathParameterFields.push(...this.getPathParameters({ namedParameters: pathParameters, snippet })); + // Separate endpoint-specific path params (required) from root-level path params + // (may have defaults from x-fern-base-path). Root-level params are placed after + // the request argument to match Method.ts parameter ordering. + const endpointPathParameterFields: php.ConstructorField[] = []; + const rootPathParameterFields: php.ConstructorField[] = []; + const endpointPathParameters = request.pathParameters ?? []; + const rootPathParameters = this.context.ir.pathParameters ?? []; + if (endpointPathParameters.length > 0) { + endpointPathParameterFields.push( + ...this.getPathParameters({ namedParameters: endpointPathParameters, snippet }) + ); } + if (rootPathParameters.length > 0) { + rootPathParameterFields.push( + ...this.getPathParameters({ namedParameters: rootPathParameters, snippet }) + ); + } + const pathParameterFields = [...endpointPathParameterFields, ...rootPathParameterFields]; this.context.errors.unscope(); this.context.errors.scope(Scope.RequestBody); @@ -885,7 +915,7 @@ export class EndpointSnippetGenerator { this.context.errors.unscope(); if (!this.context.includePathParametersInWrappedRequest({ request, inlinePathParameters })) { - args.push(...pathParameterFields.map((field) => field.value)); + args.push(...endpointPathParameterFields.map((field) => field.value)); } if ( @@ -909,6 +939,11 @@ export class EndpointSnippetGenerator { }) ); } + + if (!this.context.includePathParametersInWrappedRequest({ request, inlinePathParameters })) { + args.push(...rootPathParameterFields.map((field) => field.value)); + } + return args; } diff --git a/seed/php-sdk/api-wide-base-path-with-default/.fern/metadata.json b/seed/php-sdk/api-wide-base-path-with-default/.fern/metadata.json index 0eba66302dd2..b69701d79dd1 100644 --- a/seed/php-sdk/api-wide-base-path-with-default/.fern/metadata.json +++ b/seed/php-sdk/api-wide-base-path-with-default/.fern/metadata.json @@ -4,8 +4,8 @@ "generatorVersion": "local", "originGitCommit": "DUMMY", "originGitCommitIsDirty": null, - "invokedBy": "ci", + "invokedBy": "manual", "requestedVersion": "0.0.1", - "ciProvider": "github", + "ciProvider": null, "sdkVersion": "0.0.1" } \ No newline at end of file diff --git a/seed/php-sdk/api-wide-base-path-with-default/README.md b/seed/php-sdk/api-wide-base-path-with-default/README.md index aa6d063a3205..923c1b78afd0 100644 --- a/seed/php-sdk/api-wide-base-path-with-default/README.md +++ b/seed/php-sdk/api-wide-base-path-with-default/README.md @@ -41,10 +41,10 @@ use Seed\Types\Widget; $client = new SeedClient(); $client->widgets->create( - 'v1beta', new Widget([ 'name' => 'name', ]), + 'v1beta', ); ``` diff --git a/seed/php-sdk/api-wide-base-path-with-default/reference.md b/seed/php-sdk/api-wide-base-path-with-default/reference.md index f9038621cf7b..be35e05142a5 100644 --- a/seed/php-sdk/api-wide-base-path-with-default/reference.md +++ b/seed/php-sdk/api-wide-base-path-with-default/reference.md @@ -14,10 +14,10 @@ ```php $client->widgets->create( - 'v1beta', new Widget([ 'name' => 'name', ]), + 'v1beta', ); ``` diff --git a/seed/php-sdk/api-wide-base-path-with-default/src/dynamic-snippets/example0/snippet.php b/seed/php-sdk/api-wide-base-path-with-default/src/dynamic-snippets/example0/snippet.php index c2abf25eae97..0badc58d186b 100644 --- a/seed/php-sdk/api-wide-base-path-with-default/src/dynamic-snippets/example0/snippet.php +++ b/seed/php-sdk/api-wide-base-path-with-default/src/dynamic-snippets/example0/snippet.php @@ -11,8 +11,8 @@ ], ); $client->widgets->create( - 'v1beta', new Widget([ 'name' => 'name', ]), + 'v1beta', ); diff --git a/seed/php-sdk/api-wide-base-path-with-default/src/dynamic-snippets/example1/snippet.php b/seed/php-sdk/api-wide-base-path-with-default/src/dynamic-snippets/example1/snippet.php index 6140c63cd178..db6ca15018c8 100644 --- a/seed/php-sdk/api-wide-base-path-with-default/src/dynamic-snippets/example1/snippet.php +++ b/seed/php-sdk/api-wide-base-path-with-default/src/dynamic-snippets/example1/snippet.php @@ -11,8 +11,8 @@ ], ); $client->widgets->create( - 'apiVersion', new Widget([ 'name' => 'name', ]), + 'apiVersion', ); From 0f853fea8817b68be50b6aeef54778d459f98d07 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 20 May 2026 12:29:46 +0000 Subject: [PATCH 3/6] fix(csharp): reorder dynamic snippet args for defaulted path parameters Apply the same fix as PHP to C# dynamic snippets: root-level path parameters (from x-fern-base-path with defaults) are placed after the body argument to match AbstractEndpointGenerator parameter ordering. Also fixes biome formatting in PHP dynamic snippets. Co-Authored-By: David Konigsberg --- .../src/EndpointSnippetGenerator.ts | 53 ++++++++++++++++--- .../fix-param-ordering-with-defaults.yml | 4 ++ .../src/EndpointSnippetGenerator.ts | 8 +-- 3 files changed, 51 insertions(+), 14 deletions(-) create mode 100644 generators/csharp/sdk/changes/unreleased/fix-param-ordering-with-defaults.yml diff --git a/generators/csharp/dynamic-snippets/src/EndpointSnippetGenerator.ts b/generators/csharp/dynamic-snippets/src/EndpointSnippetGenerator.ts index 3745ee822695..5255595bbe87 100644 --- a/generators/csharp/dynamic-snippets/src/EndpointSnippetGenerator.ts +++ b/generators/csharp/dynamic-snippets/src/EndpointSnippetGenerator.ts @@ -566,11 +566,22 @@ export class EndpointSnippetGenerator extends WithGeneration { const args: ast.Literal[] = []; this.context.errors.scope(Scope.PathParameters); - const pathParameterFields: ast.ConstructorField[] = []; - const pathParameters = [...(this.context.ir.pathParameters ?? []), ...(request.pathParameters ?? [])]; - if (pathParameters.length > 0) { - pathParameterFields.push(...this.getPathParameters({ namedParameters: pathParameters, snippet })); + // Separate endpoint-specific path params (required) from root-level path params + // (may have defaults from x-fern-base-path). Root-level params are placed after + // the request argument to match AbstractEndpointGenerator parameter ordering. + const endpointPathParameterFields: ast.ConstructorField[] = []; + const rootPathParameterFields: ast.ConstructorField[] = []; + const endpointPathParameters = request.pathParameters ?? []; + const rootPathParameters = this.context.ir.pathParameters ?? []; + if (endpointPathParameters.length > 0) { + endpointPathParameterFields.push( + ...this.getPathParameters({ namedParameters: endpointPathParameters, snippet }) + ); + } + if (rootPathParameters.length > 0) { + rootPathParameterFields.push(...this.getPathParameters({ namedParameters: rootPathParameters, snippet })); } + const pathParameterFields = [...endpointPathParameterFields, ...rootPathParameterFields]; this.context.errors.unscope(); // TODO: Add support for file properties. @@ -584,7 +595,7 @@ export class EndpointSnippetGenerator extends WithGeneration { inlinePathParameters: this.settings.shouldInlinePathParameters }) ) { - args.push(...pathParameterFields.map((field) => field.value)); + args.push(...endpointPathParameterFields.map((field) => field.value)); } // For now, the C# SDK always requires the inlined request parameter. args.push( @@ -600,6 +611,16 @@ export class EndpointSnippetGenerator extends WithGeneration { filePropertyInfo }) ); + + if ( + !this.context.includePathParametersInWrappedRequest({ + request, + inlinePathParameters: this.settings.shouldInlinePathParameters + }) + ) { + args.push(...rootPathParameterFields.map((field) => field.value)); + } + return args; } @@ -789,11 +810,19 @@ export class EndpointSnippetGenerator extends WithGeneration { snippet: FernIr.dynamic.EndpointSnippetRequest; }): ast.Literal[] { const args: ast.Literal[] = []; + this.context.errors.scope(Scope.PathParameters); - const pathParameters = [...(this.context.ir.pathParameters ?? []), ...(request.pathParameters ?? [])]; - if (pathParameters.length > 0) { + // Endpoint-specific path parameters are always required (no defaults). + const endpointPathParameters = request.pathParameters ?? []; + // Root-level path parameters (e.g. from x-fern-base-path) may have default + // values, which makes them optional in the generated method signature. Place + // them after the body argument to match AbstractEndpointGenerator parameter ordering. + const rootPathParameters = this.context.ir.pathParameters ?? []; + if (endpointPathParameters.length > 0) { args.push( - ...this.getPathParameters({ namedParameters: pathParameters, snippet }).map((field) => field.value) + ...this.getPathParameters({ namedParameters: endpointPathParameters, snippet }).map( + (field) => field.value + ) ); } this.context.errors.unscope(); @@ -804,6 +833,14 @@ export class EndpointSnippetGenerator extends WithGeneration { } this.context.errors.unscope(); + if (rootPathParameters.length > 0) { + this.context.errors.scope(Scope.PathParameters); + args.push( + ...this.getPathParameters({ namedParameters: rootPathParameters, snippet }).map((field) => field.value) + ); + this.context.errors.unscope(); + } + return args; } diff --git a/generators/csharp/sdk/changes/unreleased/fix-param-ordering-with-defaults.yml b/generators/csharp/sdk/changes/unreleased/fix-param-ordering-with-defaults.yml new file mode 100644 index 000000000000..f2e983039d33 --- /dev/null +++ b/generators/csharp/sdk/changes/unreleased/fix-param-ordering-with-defaults.yml @@ -0,0 +1,4 @@ +- summary: | + Fix dynamic snippet argument ordering to place body arguments before + defaulted path parameters, matching the generated method signature ordering. + type: fix diff --git a/generators/php/dynamic-snippets/src/EndpointSnippetGenerator.ts b/generators/php/dynamic-snippets/src/EndpointSnippetGenerator.ts index 6192c96dcdd1..5f757c0ad16f 100644 --- a/generators/php/dynamic-snippets/src/EndpointSnippetGenerator.ts +++ b/generators/php/dynamic-snippets/src/EndpointSnippetGenerator.ts @@ -842,9 +842,7 @@ export class EndpointSnippetGenerator { if (rootPathParameters.length > 0) { this.context.errors.scope(Scope.PathParameters); args.push( - ...this.getPathParameters({ namedParameters: rootPathParameters, snippet }).map( - (field) => field.value - ) + ...this.getPathParameters({ namedParameters: rootPathParameters, snippet }).map((field) => field.value) ); this.context.errors.unscope(); } @@ -903,9 +901,7 @@ export class EndpointSnippetGenerator { ); } if (rootPathParameters.length > 0) { - rootPathParameterFields.push( - ...this.getPathParameters({ namedParameters: rootPathParameters, snippet }) - ); + rootPathParameterFields.push(...this.getPathParameters({ namedParameters: rootPathParameters, snippet })); } const pathParameterFields = [...endpointPathParameterFields, ...rootPathParameterFields]; this.context.errors.unscope(); From 301ec16be7879de5731f8fce089fc225229335a0 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 20 May 2026 12:32:36 +0000 Subject: [PATCH 4/6] chore: update C# seed snapshot for api-wide-base-path-with-default Co-Authored-By: David Konigsberg --- .../api-wide-base-path-with-default/.fern/metadata.json | 3 +-- .../api-wide-base-path-with-default/Snippets/Example0.cs | 4 ++-- .../api-wide-base-path-with-default/Snippets/Example1.cs | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/seed/csharp-sdk/api-wide-base-path-with-default/.fern/metadata.json b/seed/csharp-sdk/api-wide-base-path-with-default/.fern/metadata.json index a2912739ca24..3274387319e1 100644 --- a/seed/csharp-sdk/api-wide-base-path-with-default/.fern/metadata.json +++ b/seed/csharp-sdk/api-wide-base-path-with-default/.fern/metadata.json @@ -4,8 +4,7 @@ "generatorVersion": "local", "generatorConfig": {}, "originGitCommit": "DUMMY", - "invokedBy": "ci", + "invokedBy": "manual", "requestedVersion": "0.0.1", - "ciProvider": "github", "sdkVersion": "0.0.1" } \ No newline at end of file diff --git a/seed/csharp-sdk/api-wide-base-path-with-default/Snippets/Example0.cs b/seed/csharp-sdk/api-wide-base-path-with-default/Snippets/Example0.cs index e7991976777c..7abba2c59255 100644 --- a/seed/csharp-sdk/api-wide-base-path-with-default/Snippets/Example0.cs +++ b/seed/csharp-sdk/api-wide-base-path-with-default/Snippets/Example0.cs @@ -10,10 +10,10 @@ public async Task Example0() { ); await client.Widgets.CreateAsync( - "v1beta", new Widget { Name = "name" - } + }, + "v1beta" ); } diff --git a/seed/csharp-sdk/api-wide-base-path-with-default/Snippets/Example1.cs b/seed/csharp-sdk/api-wide-base-path-with-default/Snippets/Example1.cs index 5a2de0ae77a5..e32f5a98d96d 100644 --- a/seed/csharp-sdk/api-wide-base-path-with-default/Snippets/Example1.cs +++ b/seed/csharp-sdk/api-wide-base-path-with-default/Snippets/Example1.cs @@ -10,10 +10,10 @@ public async Task Example1() { ); await client.Widgets.CreateAsync( - "apiVersion", new Widget { Name = "name" - } + }, + "apiVersion" ); } From 88c9537883c53dfa5085efc5a568ea83c04f5158 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 20 May 2026 12:50:26 +0000 Subject: [PATCH 5/6] fix: process all path params together to avoid associateByWireValue errors Co-Authored-By: David Konigsberg --- .../src/EndpointSnippetGenerator.ts | 67 ++++++++--------- .../src/EndpointSnippetGenerator.ts | 74 ++++++++++--------- 2 files changed, 74 insertions(+), 67 deletions(-) diff --git a/generators/csharp/dynamic-snippets/src/EndpointSnippetGenerator.ts b/generators/csharp/dynamic-snippets/src/EndpointSnippetGenerator.ts index 5255595bbe87..28edc78b467b 100644 --- a/generators/csharp/dynamic-snippets/src/EndpointSnippetGenerator.ts +++ b/generators/csharp/dynamic-snippets/src/EndpointSnippetGenerator.ts @@ -566,22 +566,19 @@ export class EndpointSnippetGenerator extends WithGeneration { const args: ast.Literal[] = []; this.context.errors.scope(Scope.PathParameters); - // Separate endpoint-specific path params (required) from root-level path params - // (may have defaults from x-fern-base-path). Root-level params are placed after - // the request argument to match AbstractEndpointGenerator parameter ordering. - const endpointPathParameterFields: ast.ConstructorField[] = []; - const rootPathParameterFields: ast.ConstructorField[] = []; const endpointPathParameters = request.pathParameters ?? []; const rootPathParameters = this.context.ir.pathParameters ?? []; - if (endpointPathParameters.length > 0) { - endpointPathParameterFields.push( - ...this.getPathParameters({ namedParameters: endpointPathParameters, snippet }) - ); - } - if (rootPathParameters.length > 0) { - rootPathParameterFields.push(...this.getPathParameters({ namedParameters: rootPathParameters, snippet })); - } - const pathParameterFields = [...endpointPathParameterFields, ...rootPathParameterFields]; + // Process all path parameters together so associateByWireValue sees the + // full set and doesn't flag endpoint params as unrecognized. + const allNamedParameters = [...rootPathParameters, ...endpointPathParameters]; + const allPathParameterFields = this.getPathParameters({ namedParameters: allNamedParameters, snippet }); + // When there are no endpoint-specific path parameters, root-level path + // parameters may have default values (e.g. from x-fern-base-path). Place + // them after the request argument to match AbstractEndpointGenerator parameter ordering. + const moveRootAfterRequest = endpointPathParameters.length === 0 && rootPathParameters.length > 0; + // Split the fields back into root vs endpoint groups based on count. + const rootPathParameterFields = allPathParameterFields.slice(0, rootPathParameters.length); + const endpointPathParameterFields = allPathParameterFields.slice(rootPathParameters.length); this.context.errors.unscope(); // TODO: Add support for file properties. @@ -595,7 +592,11 @@ export class EndpointSnippetGenerator extends WithGeneration { inlinePathParameters: this.settings.shouldInlinePathParameters }) ) { - args.push(...endpointPathParameterFields.map((field) => field.value)); + if (moveRootAfterRequest) { + args.push(...endpointPathParameterFields.map((field) => field.value)); + } else { + args.push(...allPathParameterFields.map((field) => field.value)); + } } // For now, the C# SDK always requires the inlined request parameter. args.push( @@ -606,13 +607,14 @@ export class EndpointSnippetGenerator extends WithGeneration { request, inlinePathParameters: this.settings.shouldInlinePathParameters }) - ? pathParameterFields + ? allPathParameterFields : [], filePropertyInfo }) ); if ( + moveRootAfterRequest && !this.context.includePathParametersInWrappedRequest({ request, inlinePathParameters: this.settings.shouldInlinePathParameters @@ -812,33 +814,32 @@ export class EndpointSnippetGenerator extends WithGeneration { const args: ast.Literal[] = []; this.context.errors.scope(Scope.PathParameters); - // Endpoint-specific path parameters are always required (no defaults). const endpointPathParameters = request.pathParameters ?? []; - // Root-level path parameters (e.g. from x-fern-base-path) may have default - // values, which makes them optional in the generated method signature. Place - // them after the body argument to match AbstractEndpointGenerator parameter ordering. const rootPathParameters = this.context.ir.pathParameters ?? []; - if (endpointPathParameters.length > 0) { - args.push( - ...this.getPathParameters({ namedParameters: endpointPathParameters, snippet }).map( - (field) => field.value - ) - ); - } + // Process all path parameters together so associateByWireValue sees the + // full set and doesn't flag endpoint params as unrecognized. + const allNamedParameters = [...rootPathParameters, ...endpointPathParameters]; + const allPathParamFields = this.getPathParameters({ namedParameters: allNamedParameters, snippet }); this.context.errors.unscope(); + // When there are no endpoint-specific path parameters, root-level path + // parameters may have default values (e.g. from x-fern-base-path). Place + // them after the body argument to match AbstractEndpointGenerator parameter ordering. + const moveRootAfterBody = endpointPathParameters.length === 0 && rootPathParameters.length > 0; + if (moveRootAfterBody) { + // No endpoint params, so allPathParamFields are all root — skip them for now + } else { + args.push(...allPathParamFields.map((field) => field.value)); + } + this.context.errors.scope(Scope.RequestBody); if (request.body != null) { args.push(this.getBodyRequestArg({ body: request.body, value: snippet.requestBody })); } this.context.errors.unscope(); - if (rootPathParameters.length > 0) { - this.context.errors.scope(Scope.PathParameters); - args.push( - ...this.getPathParameters({ namedParameters: rootPathParameters, snippet }).map((field) => field.value) - ); - this.context.errors.unscope(); + if (moveRootAfterBody) { + args.push(...allPathParamFields.map((field) => field.value)); } return args; diff --git a/generators/php/dynamic-snippets/src/EndpointSnippetGenerator.ts b/generators/php/dynamic-snippets/src/EndpointSnippetGenerator.ts index 5f757c0ad16f..4f5b4fb06aca 100644 --- a/generators/php/dynamic-snippets/src/EndpointSnippetGenerator.ts +++ b/generators/php/dynamic-snippets/src/EndpointSnippetGenerator.ts @@ -818,33 +818,33 @@ export class EndpointSnippetGenerator { const args: php.TypeLiteral[] = []; this.context.errors.scope(Scope.PathParameters); - // Endpoint-specific path parameters are always required (no defaults). const endpointPathParameters = request.pathParameters ?? []; - // Root-level path parameters (e.g. from x-fern-base-path) may have default - // values, which makes them optional in the generated method signature. Place - // them after the body argument to match Method.ts parameter ordering. const rootPathParameters = this.context.ir.pathParameters ?? []; - if (endpointPathParameters.length > 0) { - args.push( - ...this.getPathParameters({ namedParameters: endpointPathParameters, snippet }).map( - (field) => field.value - ) - ); - } + // Process all path parameters together so associateByWireValue sees the + // full set and doesn't flag endpoint params as unrecognized. + const allNamedParameters = [...rootPathParameters, ...endpointPathParameters]; + const allPathParamFields = this.getPathParameters({ namedParameters: allNamedParameters, snippet }); this.context.errors.unscope(); + // When there are no endpoint-specific path parameters, root-level path + // parameters may have default values (e.g. from x-fern-base-path). Place + // them after the body argument to match Method.ts parameter ordering which + // moves parameters with initializers after required parameters. + const moveRootAfterBody = endpointPathParameters.length === 0 && rootPathParameters.length > 0; + if (moveRootAfterBody) { + // No endpoint params, so allPathParamFields are all root — skip them for now + } else { + args.push(...allPathParamFields.map((field) => field.value)); + } + this.context.errors.scope(Scope.RequestBody); if (request.body != null) { args.push(this.getBodyRequestArg({ body: request.body, value: snippet.requestBody })); } this.context.errors.unscope(); - if (rootPathParameters.length > 0) { - this.context.errors.scope(Scope.PathParameters); - args.push( - ...this.getPathParameters({ namedParameters: rootPathParameters, snippet }).map((field) => field.value) - ); - this.context.errors.unscope(); + if (moveRootAfterBody) { + args.push(...allPathParamFields.map((field) => field.value)); } return args; @@ -888,22 +888,21 @@ export class EndpointSnippetGenerator { const inlinePathParameters = this.context.customConfig?.inlinePathParameters ?? false; this.context.errors.scope(Scope.PathParameters); - // Separate endpoint-specific path params (required) from root-level path params - // (may have defaults from x-fern-base-path). Root-level params are placed after - // the request argument to match Method.ts parameter ordering. - const endpointPathParameterFields: php.ConstructorField[] = []; - const rootPathParameterFields: php.ConstructorField[] = []; const endpointPathParameters = request.pathParameters ?? []; const rootPathParameters = this.context.ir.pathParameters ?? []; - if (endpointPathParameters.length > 0) { - endpointPathParameterFields.push( - ...this.getPathParameters({ namedParameters: endpointPathParameters, snippet }) - ); - } - if (rootPathParameters.length > 0) { - rootPathParameterFields.push(...this.getPathParameters({ namedParameters: rootPathParameters, snippet })); - } - const pathParameterFields = [...endpointPathParameterFields, ...rootPathParameterFields]; + // Process all path parameters together so associateByWireValue sees the + // full set and doesn't flag endpoint params as unrecognized. + const allNamedParameters = [...rootPathParameters, ...endpointPathParameters]; + const allPathParameterFields = this.getPathParameters({ namedParameters: allNamedParameters, snippet }); + // When there are no endpoint-specific path parameters, root-level path + // parameters may have default values (e.g. from x-fern-base-path). Place + // them after the request argument to match Method.ts parameter ordering. + // When endpoint-specific path parameters exist, keep the original combined + // order (root first, then endpoint) before the request. + const moveRootAfterRequest = endpointPathParameters.length === 0 && rootPathParameters.length > 0; + // Split the fields back into root vs endpoint groups based on count. + const rootPathParameterFields = allPathParameterFields.slice(0, rootPathParameters.length); + const endpointPathParameterFields = allPathParameterFields.slice(rootPathParameters.length); this.context.errors.unscope(); this.context.errors.scope(Scope.RequestBody); @@ -911,7 +910,11 @@ export class EndpointSnippetGenerator { this.context.errors.unscope(); if (!this.context.includePathParametersInWrappedRequest({ request, inlinePathParameters })) { - args.push(...endpointPathParameterFields.map((field) => field.value)); + if (moveRootAfterRequest) { + args.push(...endpointPathParameterFields.map((field) => field.value)); + } else { + args.push(...allPathParameterFields.map((field) => field.value)); + } } if ( @@ -929,14 +932,17 @@ export class EndpointSnippetGenerator { request, inlinePathParameters }) - ? pathParameterFields + ? allPathParameterFields : [], filePropertyInfo }) ); } - if (!this.context.includePathParametersInWrappedRequest({ request, inlinePathParameters })) { + if ( + moveRootAfterRequest && + !this.context.includePathParametersInWrappedRequest({ request, inlinePathParameters }) + ) { args.push(...rootPathParameterFields.map((field) => field.value)); } From e7407fb43a382c021ff091266e62fcbd792acca8 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 20 May 2026 13:01:03 +0000 Subject: [PATCH 6/6] update seed snapshots for path-parameters fixture Co-Authored-By: David Konigsberg --- .../path-parameters/no-custom-config/.fern/metadata.json | 3 +-- .../path-parameters/no-custom-config/Snippets/Example0.cs | 4 ++-- .../path-parameters/no-custom-config/Snippets/Example1.cs | 4 ++-- .../path-parameters/no-custom-config/Snippets/Example2.cs | 4 ++-- .../path-parameters/no-custom-config/Snippets/Example3.cs | 4 ++-- .../path-parameters/no-custom-config/Snippets/Example4.cs | 4 ++-- .../path-parameters/no-custom-config/Snippets/Example5.cs | 2 +- .../path-parameters/no-custom-config/Snippets/Example6.cs | 2 +- .../path-parameters/no-custom-config/Snippets/Example7.cs | 4 ++-- .../path-parameters/no-custom-config/Snippets/Example8.cs | 4 ++-- .../no-inline-path-parameters/.fern/metadata.json | 3 +-- .../no-inline-path-parameters/Snippets/Example0.cs | 4 ++-- .../no-inline-path-parameters/Snippets/Example1.cs | 4 ++-- .../no-inline-path-parameters/Snippets/Example2.cs | 4 ++-- .../no-inline-path-parameters/Snippets/Example3.cs | 4 ++-- .../no-inline-path-parameters/Snippets/Example4.cs | 4 ++-- .../no-inline-path-parameters/Snippets/Example5.cs | 4 ++-- .../no-inline-path-parameters/Snippets/Example6.cs | 4 ++-- .../no-inline-path-parameters/Snippets/Example7.cs | 4 ++-- .../no-inline-path-parameters/Snippets/Example8.cs | 4 ++-- .../inline-path-parameters-private/.fern/metadata.json | 4 ++-- .../path-parameters/inline-path-parameters-private/README.md | 2 +- .../inline-path-parameters-private/reference.md | 2 +- .../src/dynamic-snippets/example0/snippet.php | 2 +- .../src/dynamic-snippets/example1/snippet.php | 2 +- .../src/dynamic-snippets/example2/snippet.php | 2 +- .../src/dynamic-snippets/example3/snippet.php | 2 +- .../src/dynamic-snippets/example4/snippet.php | 2 +- .../src/dynamic-snippets/example5/snippet.php | 2 +- .../src/dynamic-snippets/example6/snippet.php | 2 +- .../src/dynamic-snippets/example7/snippet.php | 2 +- .../src/dynamic-snippets/example8/snippet.php | 2 +- .../inline-path-parameters/.fern/metadata.json | 4 ++-- seed/php-sdk/path-parameters/inline-path-parameters/README.md | 2 +- .../path-parameters/inline-path-parameters/reference.md | 2 +- .../src/dynamic-snippets/example0/snippet.php | 2 +- .../src/dynamic-snippets/example1/snippet.php | 2 +- .../src/dynamic-snippets/example2/snippet.php | 2 +- .../src/dynamic-snippets/example3/snippet.php | 2 +- .../src/dynamic-snippets/example4/snippet.php | 2 +- .../src/dynamic-snippets/example5/snippet.php | 2 +- .../src/dynamic-snippets/example6/snippet.php | 2 +- .../src/dynamic-snippets/example7/snippet.php | 2 +- .../src/dynamic-snippets/example8/snippet.php | 2 +- .../path-parameters/no-custom-config/.fern/metadata.json | 4 ++-- seed/php-sdk/path-parameters/no-custom-config/README.md | 2 +- seed/php-sdk/path-parameters/no-custom-config/reference.md | 2 +- .../src/dynamic-snippets/example0/snippet.php | 2 +- .../src/dynamic-snippets/example1/snippet.php | 2 +- .../src/dynamic-snippets/example2/snippet.php | 2 +- .../src/dynamic-snippets/example3/snippet.php | 2 +- .../src/dynamic-snippets/example4/snippet.php | 2 +- .../src/dynamic-snippets/example5/snippet.php | 2 +- .../src/dynamic-snippets/example6/snippet.php | 2 +- .../src/dynamic-snippets/example7/snippet.php | 2 +- .../src/dynamic-snippets/example8/snippet.php | 2 +- 56 files changed, 75 insertions(+), 77 deletions(-) diff --git a/seed/csharp-sdk/path-parameters/no-custom-config/.fern/metadata.json b/seed/csharp-sdk/path-parameters/no-custom-config/.fern/metadata.json index a2912739ca24..3274387319e1 100644 --- a/seed/csharp-sdk/path-parameters/no-custom-config/.fern/metadata.json +++ b/seed/csharp-sdk/path-parameters/no-custom-config/.fern/metadata.json @@ -4,8 +4,7 @@ "generatorVersion": "local", "generatorConfig": {}, "originGitCommit": "DUMMY", - "invokedBy": "ci", + "invokedBy": "manual", "requestedVersion": "0.0.1", - "ciProvider": "github", "sdkVersion": "0.0.1" } \ No newline at end of file diff --git a/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example0.cs b/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example0.cs index 0836683cf960..ab2ec9285f82 100644 --- a/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example0.cs +++ b/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example0.cs @@ -10,8 +10,8 @@ public async Task Example0() { ); await client.Organizations.GetOrganizationAsync( - "tenant_id", - "organization_id" + "organization_id", + "tenant_id" ); } diff --git a/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example1.cs b/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example1.cs index ddd8e05d5850..3eca75447116 100644 --- a/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example1.cs +++ b/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example1.cs @@ -11,9 +11,9 @@ public async Task Example1() { await client.Organizations.GetOrganizationUserAsync( new GetOrganizationUserRequest { - TenantId = "tenant_id", OrganizationId = "organization_id", - UserId = "user_id" + UserId = "user_id", + TenantId = "tenant_id" } ); } diff --git a/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example2.cs b/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example2.cs index 63e1e8b7dc23..34650d5988a7 100644 --- a/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example2.cs +++ b/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example2.cs @@ -10,11 +10,11 @@ public async Task Example2() { ); await client.Organizations.SearchOrganizationsAsync( - "tenant_id", "organization_id", new SearchOrganizationsRequest { Limit = 1 - } + }, + "tenant_id" ); } diff --git a/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example3.cs b/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example3.cs index c6bf0376bbff..4b06b9d3d3bc 100644 --- a/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example3.cs +++ b/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example3.cs @@ -11,8 +11,8 @@ public async Task Example3() { await client.User.GetUserAsync( new GetUsersRequest { - TenantId = "tenant_id", - UserId = "user_id" + UserId = "user_id", + TenantId = "tenant_id" } ); } diff --git a/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example4.cs b/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example4.cs index 8ad7452f9746..2a3664903ff8 100644 --- a/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example4.cs +++ b/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example4.cs @@ -10,7 +10,6 @@ public async Task Example4() { ); await client.User.CreateUserAsync( - "tenant_id", new User { Name = "name", Tags = new List(){ @@ -18,7 +17,8 @@ await client.User.CreateUserAsync( "tags", } - } + }, + "tenant_id" ); } diff --git a/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example5.cs b/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example5.cs index 5d9ca2332970..d080029ea16a 100644 --- a/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example5.cs +++ b/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example5.cs @@ -11,8 +11,8 @@ public async Task Example5() { await client.User.UpdateUserAsync( new UpdateUserRequest { - TenantId = "tenant_id", UserId = "user_id", + TenantId = "tenant_id", Body = new User { Name = "name", Tags = new List(){ diff --git a/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example6.cs b/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example6.cs index ecd3a76689f3..4a6476a1ffe9 100644 --- a/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example6.cs +++ b/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example6.cs @@ -11,8 +11,8 @@ public async Task Example6() { await client.User.SearchUsersAsync( new SearchUsersRequest { - TenantId = "tenant_id", UserId = "user_id", + TenantId = "tenant_id", Limit = 1 } ); diff --git a/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example7.cs b/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example7.cs index 6ac917192699..956ed3e19f44 100644 --- a/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example7.cs +++ b/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example7.cs @@ -11,9 +11,9 @@ public async Task Example7() { await client.User.GetUserMetadataAsync( new GetUserMetadataRequest { - TenantId = "tenant_id", UserId = "user_id", - Version = 1 + Version = 1, + TenantId = "tenant_id" } ); } diff --git a/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example8.cs b/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example8.cs index ca96bab5fa9e..64118b86b004 100644 --- a/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example8.cs +++ b/seed/csharp-sdk/path-parameters/no-custom-config/Snippets/Example8.cs @@ -11,10 +11,10 @@ public async Task Example8() { await client.User.GetUserSpecificsAsync( new GetUserSpecificsRequest { - TenantId = "tenant_id", UserId = "user_id", Version = 1, - Thought = "thought" + Thought = "thought", + TenantId = "tenant_id" } ); } diff --git a/seed/csharp-sdk/path-parameters/no-inline-path-parameters/.fern/metadata.json b/seed/csharp-sdk/path-parameters/no-inline-path-parameters/.fern/metadata.json index 75ad2d22bb53..d70ee2d8876e 100644 --- a/seed/csharp-sdk/path-parameters/no-inline-path-parameters/.fern/metadata.json +++ b/seed/csharp-sdk/path-parameters/no-inline-path-parameters/.fern/metadata.json @@ -6,8 +6,7 @@ "inline-path-parameters": false }, "originGitCommit": "DUMMY", - "invokedBy": "ci", + "invokedBy": "manual", "requestedVersion": "0.0.1", - "ciProvider": "github", "sdkVersion": "0.0.1" } \ No newline at end of file diff --git a/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example0.cs b/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example0.cs index 0836683cf960..ab2ec9285f82 100644 --- a/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example0.cs +++ b/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example0.cs @@ -10,8 +10,8 @@ public async Task Example0() { ); await client.Organizations.GetOrganizationAsync( - "tenant_id", - "organization_id" + "organization_id", + "tenant_id" ); } diff --git a/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example1.cs b/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example1.cs index acab5ab9f1aa..beb790b7f42f 100644 --- a/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example1.cs +++ b/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example1.cs @@ -10,10 +10,10 @@ public async Task Example1() { ); await client.Organizations.GetOrganizationUserAsync( - "tenant_id", "organization_id", "user_id", - new GetOrganizationUserRequest() + new GetOrganizationUserRequest(), + "tenant_id" ); } diff --git a/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example2.cs b/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example2.cs index 63e1e8b7dc23..34650d5988a7 100644 --- a/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example2.cs +++ b/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example2.cs @@ -10,11 +10,11 @@ public async Task Example2() { ); await client.Organizations.SearchOrganizationsAsync( - "tenant_id", "organization_id", new SearchOrganizationsRequest { Limit = 1 - } + }, + "tenant_id" ); } diff --git a/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example3.cs b/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example3.cs index 11ad68e18d68..b3ab59c0b11e 100644 --- a/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example3.cs +++ b/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example3.cs @@ -10,9 +10,9 @@ public async Task Example3() { ); await client.User.GetUserAsync( - "tenant_id", "user_id", - new GetUsersRequest() + new GetUsersRequest(), + "tenant_id" ); } diff --git a/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example4.cs b/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example4.cs index 8ad7452f9746..2a3664903ff8 100644 --- a/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example4.cs +++ b/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example4.cs @@ -10,7 +10,6 @@ public async Task Example4() { ); await client.User.CreateUserAsync( - "tenant_id", new User { Name = "name", Tags = new List(){ @@ -18,7 +17,8 @@ await client.User.CreateUserAsync( "tags", } - } + }, + "tenant_id" ); } diff --git a/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example5.cs b/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example5.cs index ad4a37e9f693..d67294fdc90d 100644 --- a/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example5.cs +++ b/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example5.cs @@ -10,7 +10,6 @@ public async Task Example5() { ); await client.User.UpdateUserAsync( - "tenant_id", "user_id", new UpdateUserRequest { Body = new User { @@ -21,7 +20,8 @@ await client.User.UpdateUserAsync( } } - } + }, + "tenant_id" ); } diff --git a/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example6.cs b/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example6.cs index 81efb968a481..ba8e107c9bc3 100644 --- a/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example6.cs +++ b/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example6.cs @@ -10,11 +10,11 @@ public async Task Example6() { ); await client.User.SearchUsersAsync( - "tenant_id", "user_id", new SearchUsersRequest { Limit = 1 - } + }, + "tenant_id" ); } diff --git a/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example7.cs b/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example7.cs index 5662d4fa0065..6b1ed725da9b 100644 --- a/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example7.cs +++ b/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example7.cs @@ -10,10 +10,10 @@ public async Task Example7() { ); await client.User.GetUserMetadataAsync( - "tenant_id", "user_id", 1, - new GetUserMetadataRequest() + new GetUserMetadataRequest(), + "tenant_id" ); } diff --git a/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example8.cs b/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example8.cs index 10a12f141241..fc96779cbf2f 100644 --- a/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example8.cs +++ b/seed/csharp-sdk/path-parameters/no-inline-path-parameters/Snippets/Example8.cs @@ -10,11 +10,11 @@ public async Task Example8() { ); await client.User.GetUserSpecificsAsync( - "tenant_id", "user_id", 1, "thought", - new GetUserSpecificsRequest() + new GetUserSpecificsRequest(), + "tenant_id" ); } diff --git a/seed/php-sdk/path-parameters/inline-path-parameters-private/.fern/metadata.json b/seed/php-sdk/path-parameters/inline-path-parameters-private/.fern/metadata.json index 07a3f957790d..1fec78e01ca6 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters-private/.fern/metadata.json +++ b/seed/php-sdk/path-parameters/inline-path-parameters-private/.fern/metadata.json @@ -8,8 +8,8 @@ }, "originGitCommit": "DUMMY", "originGitCommitIsDirty": null, - "invokedBy": "ci", + "invokedBy": "manual", "requestedVersion": "0.0.1", - "ciProvider": "github", + "ciProvider": null, "sdkVersion": "0.0.1" } \ No newline at end of file diff --git a/seed/php-sdk/path-parameters/inline-path-parameters-private/README.md b/seed/php-sdk/path-parameters/inline-path-parameters-private/README.md index 018d2ec82720..5f7dd2e4123d 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters-private/README.md +++ b/seed/php-sdk/path-parameters/inline-path-parameters-private/README.md @@ -41,7 +41,6 @@ use Seed\User\Types\User; $client = new SeedClient(); $client->user->createUser( - 'tenant_id', new User([ 'name' => 'name', 'tags' => [ @@ -49,6 +48,7 @@ $client->user->createUser( 'tags', ], ]), + 'tenant_id', ); ``` diff --git a/seed/php-sdk/path-parameters/inline-path-parameters-private/reference.md b/seed/php-sdk/path-parameters/inline-path-parameters-private/reference.md index de8d3881afda..3143f9da7272 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters-private/reference.md +++ b/seed/php-sdk/path-parameters/inline-path-parameters-private/reference.md @@ -243,7 +243,6 @@ $client->user->getUser( ```php $client->user->createUser( - 'tenant_id', new User([ 'name' => 'name', 'tags' => [ @@ -251,6 +250,7 @@ $client->user->createUser( 'tags', ], ]), + 'tenant_id', ); ``` diff --git a/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example0/snippet.php b/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example0/snippet.php index 0dc41f88ade2..2073de104ef7 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example0/snippet.php +++ b/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example0/snippet.php @@ -10,6 +10,6 @@ ], ); $client->organizations->getOrganization( - 'tenant_id', 'organization_id', + 'tenant_id', ); diff --git a/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example1/snippet.php b/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example1/snippet.php index f706609e6627..c76649b08987 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example1/snippet.php +++ b/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example1/snippet.php @@ -12,8 +12,8 @@ ); $client->organizations->getOrganizationUser( new GetOrganizationUserRequest([ - 'tenantId' => 'tenant_id', 'organizationId' => 'organization_id', 'userId' => 'user_id', + 'tenantId' => 'tenant_id', ]), ); diff --git a/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example2/snippet.php b/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example2/snippet.php index 42cfca9cfcaf..c26770d8741e 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example2/snippet.php +++ b/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example2/snippet.php @@ -11,9 +11,9 @@ ], ); $client->organizations->searchOrganizations( - 'tenant_id', 'organization_id', new SearchOrganizationsRequest([ 'limit' => 1, ]), + 'tenant_id', ); diff --git a/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example3/snippet.php b/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example3/snippet.php index 00dfcf9a1876..8af438ea7bf3 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example3/snippet.php +++ b/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example3/snippet.php @@ -12,7 +12,7 @@ ); $client->user->getUser( new GetUsersRequest([ - 'tenantId' => 'tenant_id', 'userId' => 'user_id', + 'tenantId' => 'tenant_id', ]), ); diff --git a/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example4/snippet.php b/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example4/snippet.php index 9656b5afca3c..38347a8ce054 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example4/snippet.php +++ b/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example4/snippet.php @@ -11,7 +11,6 @@ ], ); $client->user->createUser( - 'tenant_id', new User([ 'name' => 'name', 'tags' => [ @@ -19,4 +18,5 @@ 'tags', ], ]), + 'tenant_id', ); diff --git a/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example5/snippet.php b/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example5/snippet.php index 1b2b65a86f9a..7c92ff5d57d0 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example5/snippet.php +++ b/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example5/snippet.php @@ -13,8 +13,8 @@ ); $client->user->updateUser( new UpdateUserRequest([ - 'tenantId' => 'tenant_id', 'userId' => 'user_id', + 'tenantId' => 'tenant_id', 'body' => new User([ 'name' => 'name', 'tags' => [ diff --git a/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example6/snippet.php b/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example6/snippet.php index 06367459029d..8a60fa960a90 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example6/snippet.php +++ b/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example6/snippet.php @@ -12,8 +12,8 @@ ); $client->user->searchUsers( new SearchUsersRequest([ - 'tenantId' => 'tenant_id', 'userId' => 'user_id', + 'tenantId' => 'tenant_id', 'limit' => 1, ]), ); diff --git a/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example7/snippet.php b/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example7/snippet.php index d6f4d8b89e9a..d9c996ab25ef 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example7/snippet.php +++ b/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example7/snippet.php @@ -12,8 +12,8 @@ ); $client->user->getUserMetadata( new GetUserMetadataRequest([ - 'tenantId' => 'tenant_id', 'userId' => 'user_id', 'version' => 1, + 'tenantId' => 'tenant_id', ]), ); diff --git a/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example8/snippet.php b/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example8/snippet.php index d40bfa09ec6c..8ffb0439f622 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example8/snippet.php +++ b/seed/php-sdk/path-parameters/inline-path-parameters-private/src/dynamic-snippets/example8/snippet.php @@ -12,9 +12,9 @@ ); $client->user->getUserSpecifics( new GetUserSpecificsRequest([ - 'tenantId' => 'tenant_id', 'userId' => 'user_id', 'version' => 1, 'thought' => 'thought', + 'tenantId' => 'tenant_id', ]), ); diff --git a/seed/php-sdk/path-parameters/inline-path-parameters/.fern/metadata.json b/seed/php-sdk/path-parameters/inline-path-parameters/.fern/metadata.json index ec4a15085360..5f8169964c3d 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters/.fern/metadata.json +++ b/seed/php-sdk/path-parameters/inline-path-parameters/.fern/metadata.json @@ -7,8 +7,8 @@ }, "originGitCommit": "DUMMY", "originGitCommitIsDirty": null, - "invokedBy": "ci", + "invokedBy": "manual", "requestedVersion": "0.0.1", - "ciProvider": "github", + "ciProvider": null, "sdkVersion": "0.0.1" } \ No newline at end of file diff --git a/seed/php-sdk/path-parameters/inline-path-parameters/README.md b/seed/php-sdk/path-parameters/inline-path-parameters/README.md index 018d2ec82720..5f7dd2e4123d 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters/README.md +++ b/seed/php-sdk/path-parameters/inline-path-parameters/README.md @@ -41,7 +41,6 @@ use Seed\User\Types\User; $client = new SeedClient(); $client->user->createUser( - 'tenant_id', new User([ 'name' => 'name', 'tags' => [ @@ -49,6 +48,7 @@ $client->user->createUser( 'tags', ], ]), + 'tenant_id', ); ``` diff --git a/seed/php-sdk/path-parameters/inline-path-parameters/reference.md b/seed/php-sdk/path-parameters/inline-path-parameters/reference.md index de8d3881afda..3143f9da7272 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters/reference.md +++ b/seed/php-sdk/path-parameters/inline-path-parameters/reference.md @@ -243,7 +243,6 @@ $client->user->getUser( ```php $client->user->createUser( - 'tenant_id', new User([ 'name' => 'name', 'tags' => [ @@ -251,6 +250,7 @@ $client->user->createUser( 'tags', ], ]), + 'tenant_id', ); ``` diff --git a/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example0/snippet.php b/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example0/snippet.php index 0dc41f88ade2..2073de104ef7 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example0/snippet.php +++ b/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example0/snippet.php @@ -10,6 +10,6 @@ ], ); $client->organizations->getOrganization( - 'tenant_id', 'organization_id', + 'tenant_id', ); diff --git a/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example1/snippet.php b/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example1/snippet.php index f706609e6627..c76649b08987 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example1/snippet.php +++ b/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example1/snippet.php @@ -12,8 +12,8 @@ ); $client->organizations->getOrganizationUser( new GetOrganizationUserRequest([ - 'tenantId' => 'tenant_id', 'organizationId' => 'organization_id', 'userId' => 'user_id', + 'tenantId' => 'tenant_id', ]), ); diff --git a/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example2/snippet.php b/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example2/snippet.php index 42cfca9cfcaf..c26770d8741e 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example2/snippet.php +++ b/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example2/snippet.php @@ -11,9 +11,9 @@ ], ); $client->organizations->searchOrganizations( - 'tenant_id', 'organization_id', new SearchOrganizationsRequest([ 'limit' => 1, ]), + 'tenant_id', ); diff --git a/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example3/snippet.php b/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example3/snippet.php index 00dfcf9a1876..8af438ea7bf3 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example3/snippet.php +++ b/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example3/snippet.php @@ -12,7 +12,7 @@ ); $client->user->getUser( new GetUsersRequest([ - 'tenantId' => 'tenant_id', 'userId' => 'user_id', + 'tenantId' => 'tenant_id', ]), ); diff --git a/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example4/snippet.php b/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example4/snippet.php index 9656b5afca3c..38347a8ce054 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example4/snippet.php +++ b/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example4/snippet.php @@ -11,7 +11,6 @@ ], ); $client->user->createUser( - 'tenant_id', new User([ 'name' => 'name', 'tags' => [ @@ -19,4 +18,5 @@ 'tags', ], ]), + 'tenant_id', ); diff --git a/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example5/snippet.php b/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example5/snippet.php index 1b2b65a86f9a..7c92ff5d57d0 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example5/snippet.php +++ b/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example5/snippet.php @@ -13,8 +13,8 @@ ); $client->user->updateUser( new UpdateUserRequest([ - 'tenantId' => 'tenant_id', 'userId' => 'user_id', + 'tenantId' => 'tenant_id', 'body' => new User([ 'name' => 'name', 'tags' => [ diff --git a/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example6/snippet.php b/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example6/snippet.php index 06367459029d..8a60fa960a90 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example6/snippet.php +++ b/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example6/snippet.php @@ -12,8 +12,8 @@ ); $client->user->searchUsers( new SearchUsersRequest([ - 'tenantId' => 'tenant_id', 'userId' => 'user_id', + 'tenantId' => 'tenant_id', 'limit' => 1, ]), ); diff --git a/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example7/snippet.php b/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example7/snippet.php index d6f4d8b89e9a..d9c996ab25ef 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example7/snippet.php +++ b/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example7/snippet.php @@ -12,8 +12,8 @@ ); $client->user->getUserMetadata( new GetUserMetadataRequest([ - 'tenantId' => 'tenant_id', 'userId' => 'user_id', 'version' => 1, + 'tenantId' => 'tenant_id', ]), ); diff --git a/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example8/snippet.php b/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example8/snippet.php index d40bfa09ec6c..8ffb0439f622 100644 --- a/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example8/snippet.php +++ b/seed/php-sdk/path-parameters/inline-path-parameters/src/dynamic-snippets/example8/snippet.php @@ -12,9 +12,9 @@ ); $client->user->getUserSpecifics( new GetUserSpecificsRequest([ - 'tenantId' => 'tenant_id', 'userId' => 'user_id', 'version' => 1, 'thought' => 'thought', + 'tenantId' => 'tenant_id', ]), ); diff --git a/seed/php-sdk/path-parameters/no-custom-config/.fern/metadata.json b/seed/php-sdk/path-parameters/no-custom-config/.fern/metadata.json index 0eba66302dd2..b69701d79dd1 100644 --- a/seed/php-sdk/path-parameters/no-custom-config/.fern/metadata.json +++ b/seed/php-sdk/path-parameters/no-custom-config/.fern/metadata.json @@ -4,8 +4,8 @@ "generatorVersion": "local", "originGitCommit": "DUMMY", "originGitCommitIsDirty": null, - "invokedBy": "ci", + "invokedBy": "manual", "requestedVersion": "0.0.1", - "ciProvider": "github", + "ciProvider": null, "sdkVersion": "0.0.1" } \ No newline at end of file diff --git a/seed/php-sdk/path-parameters/no-custom-config/README.md b/seed/php-sdk/path-parameters/no-custom-config/README.md index 018d2ec82720..5f7dd2e4123d 100644 --- a/seed/php-sdk/path-parameters/no-custom-config/README.md +++ b/seed/php-sdk/path-parameters/no-custom-config/README.md @@ -41,7 +41,6 @@ use Seed\User\Types\User; $client = new SeedClient(); $client->user->createUser( - 'tenant_id', new User([ 'name' => 'name', 'tags' => [ @@ -49,6 +48,7 @@ $client->user->createUser( 'tags', ], ]), + 'tenant_id', ); ``` diff --git a/seed/php-sdk/path-parameters/no-custom-config/reference.md b/seed/php-sdk/path-parameters/no-custom-config/reference.md index 130f33086cf7..523fd04693d5 100644 --- a/seed/php-sdk/path-parameters/no-custom-config/reference.md +++ b/seed/php-sdk/path-parameters/no-custom-config/reference.md @@ -239,7 +239,6 @@ $client->user->getUser( ```php $client->user->createUser( - 'tenant_id', new User([ 'name' => 'name', 'tags' => [ @@ -247,6 +246,7 @@ $client->user->createUser( 'tags', ], ]), + 'tenant_id', ); ``` diff --git a/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example0/snippet.php b/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example0/snippet.php index 0dc41f88ade2..2073de104ef7 100644 --- a/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example0/snippet.php +++ b/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example0/snippet.php @@ -10,6 +10,6 @@ ], ); $client->organizations->getOrganization( - 'tenant_id', 'organization_id', + 'tenant_id', ); diff --git a/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example1/snippet.php b/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example1/snippet.php index b798b2c6b425..04066f2037c7 100644 --- a/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example1/snippet.php +++ b/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example1/snippet.php @@ -10,7 +10,7 @@ ], ); $client->organizations->getOrganizationUser( - 'tenant_id', 'organization_id', 'user_id', + 'tenant_id', ); diff --git a/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example2/snippet.php b/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example2/snippet.php index 42cfca9cfcaf..c26770d8741e 100644 --- a/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example2/snippet.php +++ b/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example2/snippet.php @@ -11,9 +11,9 @@ ], ); $client->organizations->searchOrganizations( - 'tenant_id', 'organization_id', new SearchOrganizationsRequest([ 'limit' => 1, ]), + 'tenant_id', ); diff --git a/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example3/snippet.php b/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example3/snippet.php index 2986fbe5491d..c1eced2cd7cf 100644 --- a/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example3/snippet.php +++ b/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example3/snippet.php @@ -10,6 +10,6 @@ ], ); $client->user->getUser( - 'tenant_id', 'user_id', + 'tenant_id', ); diff --git a/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example4/snippet.php b/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example4/snippet.php index 9656b5afca3c..38347a8ce054 100644 --- a/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example4/snippet.php +++ b/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example4/snippet.php @@ -11,7 +11,6 @@ ], ); $client->user->createUser( - 'tenant_id', new User([ 'name' => 'name', 'tags' => [ @@ -19,4 +18,5 @@ 'tags', ], ]), + 'tenant_id', ); diff --git a/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example5/snippet.php b/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example5/snippet.php index fb3ade769881..8c9a4b813bd3 100644 --- a/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example5/snippet.php +++ b/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example5/snippet.php @@ -12,7 +12,6 @@ ], ); $client->user->updateUser( - 'tenant_id', 'user_id', new UpdateUserRequest([ 'body' => new User([ @@ -23,4 +22,5 @@ ], ]), ]), + 'tenant_id', ); diff --git a/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example6/snippet.php b/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example6/snippet.php index cbe6173304c7..0e41db87b75e 100644 --- a/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example6/snippet.php +++ b/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example6/snippet.php @@ -11,9 +11,9 @@ ], ); $client->user->searchUsers( - 'tenant_id', 'user_id', new SearchUsersRequest([ 'limit' => 1, ]), + 'tenant_id', ); diff --git a/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example7/snippet.php b/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example7/snippet.php index b5b9ee01ea53..ce45e184a7a2 100644 --- a/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example7/snippet.php +++ b/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example7/snippet.php @@ -10,7 +10,7 @@ ], ); $client->user->getUserMetadata( - 'tenant_id', 'user_id', 1, + 'tenant_id', ); diff --git a/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example8/snippet.php b/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example8/snippet.php index a1f2830fedd2..d43a88c6b3f1 100644 --- a/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example8/snippet.php +++ b/seed/php-sdk/path-parameters/no-custom-config/src/dynamic-snippets/example8/snippet.php @@ -10,8 +10,8 @@ ], ); $client->user->getUserSpecifics( - 'tenant_id', 'user_id', 1, 'thought', + 'tenant_id', );