chore(settings): fix oauth2 config json parsers
This commit is contained in:
parent
7946e046e2
commit
31f657a15f
@ -298,7 +298,7 @@ makePrisms ''JobMode
|
||||
makeLenses_ ''JobMode
|
||||
|
||||
deriveFromJSON defaultOptions
|
||||
{ constructorTagModifier = camelToPathPiece' 2
|
||||
{ constructorTagModifier = toLower . dropPrefix "UserDb"
|
||||
, sumEncoding = TaggedObject "protocol" "config"
|
||||
} ''UserDbConf
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@ module Settings.OAuth2
|
||||
import ClassyPrelude
|
||||
|
||||
import Utils.Lens.TH
|
||||
import Utils.PathPiece (camelToPathPiece')
|
||||
import Utils.PathPiece (camelToPathPiece)
|
||||
|
||||
import Data.Aeson
|
||||
import Data.Aeson.TH
|
||||
@ -28,5 +28,5 @@ data OAuth2Conf = OAuth2Conf
|
||||
makeLenses_ ''OAuth2Conf
|
||||
|
||||
deriveFromJSON defaultOptions
|
||||
{ fieldLabelModifier = camelToPathPiece' 1
|
||||
{ fieldLabelModifier = camelToPathPiece . dropPrefix "oauth2"
|
||||
} ''OAuth2Conf
|
||||
|
||||
Reference in New Issue
Block a user