mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-22 08:02:19 +00:00
fix oneOf infer bug (#7526)
This commit is contained in:
@@ -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])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user