Skip to content

Commit ca272ea

Browse files
authored
fix(ipam/v1): allow source field to be null in responses (#1315)
1 parent ff11630 commit ca272ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/clients/src/api/ipam/v1/marshalling.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const unmarshalIP = (data: unknown): IP => {
7676
region: data.region,
7777
resource: data.resource ? unmarshalResource(data.resource) : undefined,
7878
reverses: unmarshalArrayOfObject(data.reverses, unmarshalReverse),
79-
source: unmarshalSource(data.source),
79+
source: data.source ? unmarshalSource(data.source) : undefined,
8080
tags: data.tags,
8181
updatedAt: unmarshalDate(data.updated_at),
8282
zone: data.zone,

packages/clients/src/api/ipam/v1/types.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export interface IP {
8686
/** Date the IP was last modified. */
8787
updatedAt?: Date
8888
/** Source pool where the IP was booked in. */
89-
source: Source
89+
source?: Source
9090
/** Resource which the IP is attached to. */
9191
resource?: Resource
9292
/** Tags for the IP. */

0 commit comments

Comments
 (0)