Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeout attribute not supported for input step? #803

Open
e-gineer opened this issue Mar 15, 2024 · 0 comments
Open

timeout attribute not supported for input step? #803

e-gineer opened this issue Mar 15, 2024 · 0 comments
Labels
blocker bug Something isn't working

Comments

@e-gineer
Copy link
Contributor

I'm trying to use a timeout in an input step:

  step "input" "approve" {

    notifier = notifier[param.approver]

    type = "button"

    subject = param.subject

    prompt = param.prompt

    timeout = param.timeout == -1 ? null : param.timeout

    option "approve" {
      label = "Approve"
      style = "ok"
    }

    option "deny" {
      label = "Deny"
      style = "alert"
    }

  }

I'm getting this error:

2024-03-15 13:42:17 [flowpipe] error Failed watching workspace for mod mod.approval: failed to reload workspace: Internal Error: Failed to decode mod: Unsupported argument: An argument named "timeout" is not expected here.
(/Users/nathan/src/flowpipe-mod-approval/mod.fp:211,5-12)

But the docs say that timeout should work for all step types?

@e-gineer e-gineer added the bug Something isn't working label Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants