ernoaapa
ernoaapa3h ago

schema_validation with resources not possible

Is it really so that if I want to use the //schema_validation, I cannot use resource types? Now following simple example fails "argument XX should be an object" when trying to execute (when I pass valid resource to it)
// schema_validation

type Gmail = {
token: string
}
export async function main(
gmail: Gmail
): Promise<boolean> {
return gmail != null;
}
// schema_validation

type Gmail = {
token: string
}
export async function main(
gmail: Gmail
): Promise<boolean> {
return gmail != null;
}
Created also GitHub issue about this https://github.com/windmill-labs/windmill/issues/6938
GitHub
bug: schema validation fails if resources used · Issue #6938 · wi...
Describe the bug If I enable the schema validation with &quot;// schema_validation&quot; and my script includes parameters that are resources, the execution fails to error &quot;argument XX should ...
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?