ernoaapaE
Windmill3mo ago
2 replies
ernoaapa

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;
}


Created also GitHub issue about this https://github.com/windmill-labs/windmill/issues/6938
GitHub
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 ...
bug: schema validation fails if resources used · Issue #6938 · wi...
Was this page helpful?