Safe Haskell | None |
---|---|
Language | Haskell2010 |
- enum :: ValidatorConstructor err [FailureInfo]
- typeValidator :: ValidatorConstructor err [FailureInfo]
- isJsonType :: Value -> Vector Text -> [FailureInfo]
- allOf :: ValidatorConstructor err [ValidationFailure err]
- anyOf :: ValidatorConstructor err [FailureInfo]
- oneOf :: ValidatorConstructor err [FailureInfo]
- notValidator :: ValidatorConstructor err [FailureInfo]
- ref :: ValidatorConstructor err [ValidationFailure err]
Documentation
enum :: ValidatorConstructor err [FailureInfo] Source
http://json-schema.org/latest/json-schema-validation.html#anchor76
The value of this keyword MUST be an array. This array MUST have at least one element. Elements in the array MUST be unique. Elements in the array MAY be of any type, including null.
NOTE: We actually respect this, and don't build the validator if any of the elements aren't unique.
isJsonType :: Value -> Vector Text -> [FailureInfo] Source
allOf :: ValidatorConstructor err [ValidationFailure err] Source
anyOf :: ValidatorConstructor err [FailureInfo] Source
oneOf :: ValidatorConstructor err [FailureInfo] Source
ref :: ValidatorConstructor err [ValidationFailure err] Source