Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data DependencyFailure err
- maxProperties :: ValidatorConstructor err [FailureInfo]
- minProperties :: ValidatorConstructor err [FailureInfo]
- required :: ValidatorConstructor err [FailureInfo]
- dependencies :: ValidatorConstructor err [ValidationFailure (DependencyFailure err)]
- data PropertiesFailure err
- = Properties err
- | PropPattern err
- | PropAdditional (AdditionalPropertiesFailure err)
- data PatternPropertiesFailure err
- data AdditionalPropertiesFailure err
- properties :: forall err. ValidatorConstructor err [ValidationFailure (PropertiesFailure err)]
- patternProperties :: ValidatorConstructor err [ValidationFailure (PatternPropertiesFailure err)]
- patternUnmatched :: Spec err -> Graph -> RawSchema -> Value -> Maybe (Value -> ([ValidationFailure err], Value))
- additionalProperties :: ValidatorConstructor err [ValidationFailure (AdditionalPropertiesFailure err)]
- runAdditionalProperties :: ValidatorConstructor err [ValidationFailure (AdditionalPropertiesFailure err)]
Documentation
data DependencyFailure err Source
required :: ValidatorConstructor err [FailureInfo] Source
dependencies :: ValidatorConstructor err [ValidationFailure (DependencyFailure err)] Source
data PropertiesFailure err Source
Properties err | |
PropPattern err | |
PropAdditional (AdditionalPropertiesFailure err) |
data PatternPropertiesFailure err Source
properties :: forall err. ValidatorConstructor err [ValidationFailure (PropertiesFailure err)] Source
In order of what's tried: properties, patternProperties, additionalProperties
patternProperties :: ValidatorConstructor err [ValidationFailure (PatternPropertiesFailure err)] Source
patternUnmatched :: Spec err -> Graph -> RawSchema -> Value -> Maybe (Value -> ([ValidationFailure err], Value)) Source
additionalProperties :: ValidatorConstructor err [ValidationFailure (AdditionalPropertiesFailure err)] Source
runAdditionalProperties :: ValidatorConstructor err [ValidationFailure (AdditionalPropertiesFailure err)] Source
An additionalProperties validator than never disables itself.
Not meant to be used standalone, but useful inside of the properties and patternProperties validators.