Fix swagger documentation for version-info
This commit is contained in:
parent
75d16e4b73
commit
891c9645ab
@ -101,7 +101,7 @@ declareVersionInfoSwagger = do
|
|||||||
|
|
||||||
return $ mempty
|
return $ mempty
|
||||||
& paths .~
|
& paths .~
|
||||||
[ ("/api/version-info/{challengeName}",
|
[ ("/api/version-info/{versionHash}",
|
||||||
mempty & get ?~ (mempty
|
mempty & get ?~ (mempty
|
||||||
& parameters .~ [ Inline $ mempty
|
& parameters .~ [ Inline $ mempty
|
||||||
& name .~ "versionHash"
|
& name .~ "versionHash"
|
||||||
|
@ -55,6 +55,7 @@ hexNibbleToWord8 'E' = 14
|
|||||||
hexNibbleToWord8 'e' = 14
|
hexNibbleToWord8 'e' = 14
|
||||||
hexNibbleToWord8 'F' = 15
|
hexNibbleToWord8 'F' = 15
|
||||||
hexNibbleToWord8 'f' = 15
|
hexNibbleToWord8 'f' = 15
|
||||||
|
hexNibbleToWord8 c = error ("Unexpected char '" ++ [c] ++ "'")
|
||||||
|
|
||||||
instance PersistField SHA1 where
|
instance PersistField SHA1 where
|
||||||
toPersistValue (SHA1 t) = PersistByteString t
|
toPersistValue (SHA1 t) = PersistByteString t
|
||||||
|
Loading…
Reference in New Issue
Block a user