Fix swagger documentation for version-info

This commit is contained in:
Filip Gralinski 2021-09-02 21:13:21 +02:00
parent 75d16e4b73
commit 891c9645ab
2 changed files with 2 additions and 1 deletions

View File

@ -101,7 +101,7 @@ declareVersionInfoSwagger = do
return $ mempty
& paths .~
[ ("/api/version-info/{challengeName}",
[ ("/api/version-info/{versionHash}",
mempty & get ?~ (mempty
& parameters .~ [ Inline $ mempty
& name .~ "versionHash"

View File

@ -55,6 +55,7 @@ hexNibbleToWord8 'E' = 14
hexNibbleToWord8 'e' = 14
hexNibbleToWord8 'F' = 15
hexNibbleToWord8 'f' = 15
hexNibbleToWord8 c = error ("Unexpected char '" ++ [c] ++ "'")
instance PersistField SHA1 where
toPersistValue (SHA1 t) = PersistByteString t