Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Invalid = Invalid {}
- data ValidatorFailure
- = FailureMultipleOf MultipleOfInvalid
- | FailureMaximum MaximumInvalid
- | FailureMinimum MinimumInvalid
- | FailureMaxLength MaxLengthInvalid
- | FailureMinLength MinLengthInvalid
- | FailurePattern PatternInvalid
- | FailureMaxItems MaxItemsInvalid
- | FailureMinItems MinItemsInvalid
- | FailureUniqueItems UniqueItemsInvalid
- | FailureItems (ItemsInvalid ValidatorFailure)
- | FailureAdditionalItems (AdditionalItemsInvalid ValidatorFailure)
- | FailureMaxProperties MaxPropertiesInvalid
- | FailureMinProperties MinPropertiesInvalid
- | FailureRequired RequiredInvalid
- | FailureDependencies (DependenciesInvalid ValidatorFailure)
- | FailurePropertiesRelated (PropertiesRelatedInvalid ValidatorFailure)
- | FailureRef (RefInvalid ValidatorFailure)
- | FailureEnum EnumInvalid
- | FailureType TypeValidatorInvalid
- | FailureAllOf (AllOfInvalid ValidatorFailure)
- | FailureAnyOf (AnyOfInvalid ValidatorFailure)
- | FailureOneOf (OneOfInvalid ValidatorFailure)
- | FailureNot NotValidatorInvalid
- newtype SchemaInvalid = SchemaInvalid {}
Documentation
Used to report an entire instance being invalidated, as opposed to the failure of a single validator.
data ValidatorFailure Source #
newtype SchemaInvalid Source #
A description of why a schema (or one of its reference) is itself invalid.
Nothing
indicates the starting schema. Just
indicates a referenced
schema. The contents of the Just
is the schema's URI.
NOTE: 'HashMap (Maybe Text) Invalid' would be a nicer way of defining this, but then we lose the guarantee that there's at least one key.