rubenf
rubenf8mo ago

approval step enum error

@aleph I really can't reproduce
2 Replies
rubenf
rubenf8mo ago
summary: ""
value:
modules:
- id: b
summary: Approval
value:
type: rawscript
content: >
import * as wmill from "windmill-client@^1.158.2";


export async function main() {
const resumeUrls = await wmill.getResumeUrls();
const enumData = ['66006626895a210001fa107e - PICKING_DELIVERY_SHOPPER', '6601976e053b120001062f9e - PICKING_DELIVERY_SHOPPER'].map((q) => {
return `${q} - ${q}`;
});

return {
resume: resumeUrls["resume"],
enums: {
"Select Task": enumData,
},
};
}
language: bun
input_transforms: {}
tag: ""
suspend:
required_events: 1
timeout: 1800
resume_form:
schema:
$schema: https://json-schema.org/draft/2020-12/schema
properties:
Select Task:
type: string
description: ""
default: ""
required: []
type: object
order:
- Select Task
schema:
$schema: https://json-schema.org/draft/2020-12/schema
properties: {}
required: []
type: object
summary: ""
value:
modules:
- id: b
summary: Approval
value:
type: rawscript
content: >
import * as wmill from "windmill-client@^1.158.2";


export async function main() {
const resumeUrls = await wmill.getResumeUrls();
const enumData = ['66006626895a210001fa107e - PICKING_DELIVERY_SHOPPER', '6601976e053b120001062f9e - PICKING_DELIVERY_SHOPPER'].map((q) => {
return `${q} - ${q}`;
});

return {
resume: resumeUrls["resume"],
enums: {
"Select Task": enumData,
},
};
}
language: bun
input_transforms: {}
tag: ""
suspend:
required_events: 1
timeout: 1800
resume_form:
schema:
$schema: https://json-schema.org/draft/2020-12/schema
properties:
Select Task:
type: string
description: ""
default: ""
required: []
type: object
order:
- Select Task
schema:
$schema: https://json-schema.org/draft/2020-12/schema
properties: {}
required: []
type: object
try with this flow it's the exact same enum as you did but it's working as expected for me
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View