Skip to content

Commit 490f9d6

Browse files
authored
fix: do not default to config variable for optional fields (#1556)
1 parent fe2d120 commit 490f9d6

File tree

2 files changed

+6
-27
lines changed

2 files changed

+6
-27
lines changed

packages/clients/src/api/mongodb/v1alpha1/api.gen.ts

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -138,20 +138,13 @@ export class API extends ParentAPI {
138138
urlParams: urlParams(
139139
['name', request.name],
140140
['order_by', request.orderBy],
141-
[
142-
'organization_id',
143-
request.organizationId ??
144-
this.client.settings.defaultOrganizationId,
145-
],
141+
['organization_id', request.organizationId],
146142
['page', request.page],
147143
[
148144
'page_size',
149145
request.pageSize ?? this.client.settings.defaultPageSize,
150146
],
151-
[
152-
'project_id',
153-
request.projectId ?? this.client.settings.defaultProjectId,
154-
],
147+
['project_id', request.projectId],
155148
['tags', request.tags],
156149
),
157150
},
@@ -417,20 +410,13 @@ export class API extends ParentAPI {
417410
['instance_id', request.instanceId],
418411
['name', request.name],
419412
['order_by', request.orderBy],
420-
[
421-
'organization_id',
422-
request.organizationId ??
423-
this.client.settings.defaultOrganizationId,
424-
],
413+
['organization_id', request.organizationId],
425414
['page', request.page],
426415
[
427416
'page_size',
428417
request.pageSize ?? this.client.settings.defaultPageSize,
429418
],
430-
[
431-
'project_id',
432-
request.projectId ?? this.client.settings.defaultProjectId,
433-
],
419+
['project_id', request.projectId],
434420
),
435421
},
436422
unmarshalListSnapshotsResponse,

packages/clients/src/api/webhosting/v1/api.gen.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -458,20 +458,13 @@ export class HostingAPI extends ParentAPI {
458458
['control_panels', request.controlPanels],
459459
['domain', request.domain],
460460
['order_by', request.orderBy],
461-
[
462-
'organization_id',
463-
request.organizationId ??
464-
this.client.settings.defaultOrganizationId,
465-
],
461+
['organization_id', request.organizationId],
466462
['page', request.page],
467463
[
468464
'page_size',
469465
request.pageSize ?? this.client.settings.defaultPageSize,
470466
],
471-
[
472-
'project_id',
473-
request.projectId ?? this.client.settings.defaultProjectId,
474-
],
467+
['project_id', request.projectId],
475468
['statuses', request.statuses],
476469
['tags', request.tags],
477470
),

0 commit comments

Comments
 (0)