From f642276169b56be94e8537458d0ce2286dc71748 Mon Sep 17 00:00:00 2001 From: Clement Delafargue Date: Wed, 1 Jul 2020 11:34:40 +0200 Subject: Add dhall definitions for linked service dependencies --- dhall/ServiceDependency.dhall | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 dhall/ServiceDependency.dhall (limited to 'dhall/ServiceDependency.dhall') diff --git a/dhall/ServiceDependency.dhall b/dhall/ServiceDependency.dhall new file mode 100644 index 0000000..9cad9b4 --- /dev/null +++ b/dhall/ServiceDependency.dhall @@ -0,0 +1,9 @@ +let ServiceDependency = + < Addon : { addon_id : Text } | Application : { app_id : Text } > + +let addon = λ(addon_id : Text) → ServiceDependency.Addon { addon_id = addon_id } + +let application = + λ(app_id : Text) → ServiceDependency.Application { app_id = app_id } + +in { Type = ServiceDependency, addon = addon, application = application } -- cgit v1.2.3