jexia / semaphore

Take control of your data, connect with anything, and expose it anywhere through protocols such as HTTP, GraphQL, and gRPC.

Home Page:https://jexia.github.io/semaphore/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unresolved flow dependencies

jeroenrinzema opened this issue · comments

Middleware dependencies could be defined inside a flow. Dependencies are called before a flow gets executed. If any of the resources within a dependency fails is the flow aborted. Dependencies could be references inside a flow as resources.

flow "greeter" {
  depends_on = ["validation"]

  input "query" {}

  resource "io" {
    request "Say" "Hello" {
      msg = "{{ input:msg }}"
      valid = "{{ validation:valid }}"
    }
  }
}

Currently, are dependencies initialized and validated by the specs but are not executed.

This issue will be resolved with custom defined functions. TBA...