forked from filipg/gonito
Fix swagger documentation for version-info
This commit is contained in:
parent
75d16e4b73
commit
891c9645ab
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user