Skip to content

Commit 9f06b6b

Browse files
SEP-1330: Compatibility with SEP-1034 (#1100)
Co-authored-by: cliffhall <[email protected]>
1 parent ce420f8 commit 9f06b6b

File tree

5 files changed

+785
-242
lines changed

5 files changed

+785
-242
lines changed

src/client/index.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,19 @@ function applyElicitationDefaults(schema: JsonSchemaType | undefined, data: unkn
7070
}
7171
}
7272
}
73+
74+
if (Array.isArray(schema.anyOf)) {
75+
for (const sub of schema.anyOf) {
76+
applyElicitationDefaults(sub, data);
77+
}
78+
}
79+
80+
// Combine schemas
81+
if (Array.isArray(schema.oneOf)) {
82+
for (const sub of schema.oneOf) {
83+
applyElicitationDefaults(sub, data);
84+
}
85+
}
7386
}
7487

7588
export type ClientOptions = ProtocolOptions & {

0 commit comments

Comments
 (0)