aboutsummaryrefslogtreecommitdiffstats
path: root/backend/app/Main.hs
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-06-06 15:20:13 +0200
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-06-06 15:20:13 +0200
commitd39c1665f842bb93fd2c7e291a11aa000120350c (patch)
treeb49e8f320bab305905b76a182aa18488fc36e56a /backend/app/Main.hs
parentc7d0139116ff5c12ffa4c11dbfee697dbf694c46 (diff)
add `string?`-typed fields
Diffstat (limited to 'backend/app/Main.hs')
-rw-r--r--backend/app/Main.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/app/Main.hs b/backend/app/Main.hs
index d26259b..8bd02b2 100644
--- a/backend/app/Main.hs
+++ b/backend/app/Main.hs
@@ -91,6 +91,7 @@ fromAutoTypes path (U.Object ps) =
]
where
toProperty k (U.Scalar "string") = "string" :: String
+ toProperty k (U.Option (Just (U.Scalar "string"))) = "string?" :: String
watch :: TMVar Repo -> FilePath -> G.RefName -> IO ()
watch repoT root ref = do