| 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
- validateNameAgreement :: (Text -> Either ParseError PackageName) -> PackageName -> Maybe Value -> Either MetadataError PackageName
- projectionResult :: Projection a -> Either MetadataError a
- streamError :: Limits -> ParseError -> MetadataError
- finishSelectedVersion :: (a -> PackageInfo) -> (Version -> a -> Maybe CachedDoc) -> Limits -> Version -> StreamResult a -> Either MetadataError VersionRead
Documentation
validateReportedName :: (Text -> Either ParseError PackageName) -> Maybe Value -> Either MetadataError PackageName Source #
An absent, non-string, or rejected name is an undecodable document.
validateNameAgreement :: (Text -> Either ParseError PackageName) -> PackageName -> Maybe Value -> Either MetadataError PackageName Source #
Validate the native name and preserve it when refusing a mismatched origin.
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.
finishSelectedVersion :: (a -> PackageInfo) -> (Version -> a -> Maybe CachedDoc) -> Limits -> Version -> StreamResult a -> Either MetadataError VersionRead Source #
A selected walk's version: its typed details by raw version and the native document select
keeps for it. No upstream latest tag is reported.