| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.Metadata.Projection
Description
Shared metadata validation for full documents and selective adapter reads. Ecosystem callbacks own wire projection and package-name parsing.
Synopsis
- validateReportedName :: (Text -> Either ParseError PackageName) -> Maybe Value -> Either MetadataError PackageName
- projectionResult :: Projection a -> Either MetadataError a
- streamError :: Limits -> ParseError -> MetadataError
Documentation
validateReportedName :: (Text -> Either ParseError PackageName) -> Maybe Value -> Either MetadataError PackageName Source #
An absent, non-string, or rejected name is an undecodable document.
projectionResult :: Projection a -> Either MetadataError a Source #
Preserve the reported name when refusing a mismatched origin.
streamError :: Limits -> ParseError -> MetadataError Source #
Translate incremental parser bounds without requiring validity of skipped data.