confcrypt-0.2.0.0

Copyright(c) 2018 Chris Coffey
(c) 2018 CollegeVine
LicenseMIT
MaintainerChris Coffey
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

ConfCrypt.Validation

Contents

Description

 
Synopsis

Rule validation

runAllRules :: (Monad m, MonadDecrypt m key, MonadReader (ConfCryptFile, key) m) => m [Text] Source #

Apply all validation rules, accumulating the errors across rules.

Individual rules

parameterTypesMatchSchema :: (Monad m, MonadDecrypt m key) => key -> ConfCryptFile -> m [Text] Source #

For each (Schema, Parameter) pair, confirm that the parameter's value type matches the schema.

logMissingSchemas :: Monad m => ConfCryptFile -> m [Text] Source #

Raise an error if there are parameters without a schema

logMissingParameters :: Monad m => ConfCryptFile -> m [Text] Source #

Raise an error if there are schema without a parameter