fix(storage-key): fix types

This commit is contained in:
Sarah Vaupel 2020-01-28 18:09:11 +01:00 committed by Gregor Kleen
parent 62bf73ac1f
commit a0d067fabf

View File

@ -13,9 +13,13 @@ import qualified Crypto.KDF.HKDF as HKDF
data StorageKeyType
= SKTExamCorrect ExamId
= SKTExamCorrect
{ _sktExam :: CryptoUUIDExam
}
deriveJSON defaultOptions
{ constructorTagModifier = camelToPathPiece' 3
{ fieldLabelModifier = camelToPathPiece' 1
, constructorTagModifier = camelToPathPiece' 1
, tagSingleConstructors = True
} ''StorageKeyType
data StorageKeyRequest
@ -27,6 +31,7 @@ data StorageKeyRequest
}
deriveJSON defaultOptions
{ fieldLabelModifier = camelToPathPiece' 2
, omitNothingFields = True
} ''StorageKeyRequest
data StorageKeyResponse