fix(storage-key): fix types
This commit is contained in:
parent
62bf73ac1f
commit
a0d067fabf
@ -13,9 +13,13 @@ import qualified Crypto.KDF.HKDF as HKDF
|
|||||||
|
|
||||||
|
|
||||||
data StorageKeyType
|
data StorageKeyType
|
||||||
= SKTExamCorrect ExamId
|
= SKTExamCorrect
|
||||||
|
{ _sktExam :: CryptoUUIDExam
|
||||||
|
}
|
||||||
deriveJSON defaultOptions
|
deriveJSON defaultOptions
|
||||||
{ constructorTagModifier = camelToPathPiece' 3
|
{ fieldLabelModifier = camelToPathPiece' 1
|
||||||
|
, constructorTagModifier = camelToPathPiece' 1
|
||||||
|
, tagSingleConstructors = True
|
||||||
} ''StorageKeyType
|
} ''StorageKeyType
|
||||||
|
|
||||||
data StorageKeyRequest
|
data StorageKeyRequest
|
||||||
@ -27,6 +31,7 @@ data StorageKeyRequest
|
|||||||
}
|
}
|
||||||
deriveJSON defaultOptions
|
deriveJSON defaultOptions
|
||||||
{ fieldLabelModifier = camelToPathPiece' 2
|
{ fieldLabelModifier = camelToPathPiece' 2
|
||||||
|
, omitNothingFields = True
|
||||||
} ''StorageKeyRequest
|
} ''StorageKeyRequest
|
||||||
|
|
||||||
data StorageKeyResponse
|
data StorageKeyResponse
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user