Safe Haskell | None |
---|---|
Language | Haskell2010 |
- draft4 :: Spec
- fetchRefs :: Spec -> RawSchema -> Graph -> IO (Either Text Graph)
- isValidSchema :: RawSchema -> Vector ValErr
- newtype Spec = Spec {}
- type Graph = HashMap Text (HashMap Text Value)
- type ValErr = Text
- type Validator = Value -> Vector ValErr
- type ValidatorGen = Spec -> Graph -> RawSchema -> Value -> Maybe Validator
- type Schema = Vector Validator
- data RawSchema = RawSchema {}
- compile :: Spec -> Graph -> RawSchema -> Schema
- validate :: Schema -> Value -> Vector ValErr
Documentation
isValidSchema :: RawSchema -> Vector ValErr Source