WindmillWWindmill
Powered by
ernoaapaE
Windmill•4mo 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;
}
// 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 ...
bug: schema validation fails if resources used · Issue #6938 · wi...
WindmillJoin
3,362Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Validation
habip_okcuHhabip_okcu / help
3y ago
Triggers are not git synced unlike all other resources
wdesertWwdesert / help
9mo ago
Unable to sync resources with hub on new install
FrinkemonFFrinkemon / help
2y ago
Multiple azure_blob resources
rovertoRroverto / help
2y ago