Skip to content

Commit 2d948f0

Browse files
committed
test changing DiskState to oneOf
1 parent 808734a commit 2d948f0

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

app/docs/nexus-openapi.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,7 @@
13481348
},
13491349
"DiskState": {
13501350
"description": "State of a Disk (primarily: attached or not)",
1351-
"anyOf": [
1351+
"oneOf": [
13521352
{
13531353
"description": "Disk is being initialized",
13541354
"type": "object",

gen-client/Api.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,7 @@ export type DiskState =
125125
| { instance: string; state: "attached" }
126126
| { instance: string; state: "detaching" }
127127
| { state: "destroyed" }
128-
| { state: "faulted" }
129-
| ({ state: "creating" } & { state: "detached" } & { instance: string; state: "attaching" } & {
130-
instance: string;
131-
state: "attached";
132-
} & { instance: string; state: "detaching" } & { state: "destroyed" } & { state: "faulted" });
128+
| { state: "faulted" };
133129

134130
/**
135131
* Identity-related metadata that's included in nearly all public API objects

0 commit comments

Comments
 (0)