feat: windmill dyn multiselect (#6488)

* done

* fix

* better

* typo

* use old key

* chore: publish pkgs and update deps

---------

Co-authored-by: HugoCasa <hugo@casademont.ch>
This commit is contained in:
dieriba
2025-09-05 09:10:01 +02:00
committed by GitHub
parent 2027a9c2bd
commit 548c4da147
22 changed files with 241 additions and 153 deletions

View File

@@ -60,6 +60,7 @@ export function argSigToJsonSchemaType(
| null
}
| { dynselect: string }
| { dynmultiselect: string }
| { str: string[] | null }
| { object: { name?: string; props?: { key: string; typ: any }[] } }
| {
@@ -150,7 +151,11 @@ export function argSigToJsonSchemaType(
} else if (typeof t !== 'string' && `dynselect` in t) {
newS.type = 'object'
newS.format = `dynselect-${t.dynselect}`
} else if (typeof t !== 'string' && `list` in t) {
} else if (typeof t !== 'string' && `dynmultiselect` in t) {
newS.type = 'object'
newS.format = `dynmultiselect-${t.dynmultiselect}`
}
else if (typeof t !== 'string' && `list` in t) {
newS.type = 'array'
if (t.list === 'int' || t.list === 'float') {
newS.items = { type: 'number' }