From d6a44559ce4582750874800ae52182e04a0ee779 Mon Sep 17 00:00:00 2001 From: Diego Imbert <70353967+diegoimbert@users.noreply.github.com> Date: Thu, 8 Jan 2026 13:45:00 +0100 Subject: [PATCH] fix oneOf infer bug (#7526) --- frontend/src/lib/infer.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/lib/infer.ts b/frontend/src/lib/infer.ts index 96532916e9..b12ca1e671 100644 --- a/frontend/src/lib/infer.ts +++ b/frontend/src/lib/infer.ts @@ -308,6 +308,8 @@ export async function inferArgs( schema.properties[arg.name] = { description: '', type: '' } } else { schema.properties[arg.name] = oldProperties[arg.name] + if (schema.properties[arg.name].oneOf && !('oneof' in arg)) + delete schema.properties[arg.name].oneOf } schema.properties[arg.name] = sortObject(schema.properties[arg.name])