pub enum ManifestError {
InvalidJson(Error),
EmptyName,
InvalidEntrypoint(RelativePathError),
InvalidReadme(RelativePathError),
InvalidExclude {
pattern: String,
source: RelativePathError,
},
ReadmeTrue,
InvalidDependencyName(String),
DuplicateDependencyName(String, String),
DependencySource(DependencySourceError),
License(LicenseError),
Io {
path: PathBuf,
source: Error,
},
}Expand description
An error parsing a Manifest.
Parsing is strict per the spec; trailing commas, comments, BOM, and duplicate object keys at any nesting depth are all rejected.
Variants§
InvalidJson(Error)
The bytes did not parse as JSON.
EmptyName
The name field is empty.
InvalidEntrypoint(RelativePathError)
The entrypoint path failed relative-path validation.
InvalidReadme(RelativePathError)
The readme path failed relative-path validation.
InvalidExclude
An exclude entry failed relative-path validation.
Fields
source: RelativePathErrorThe underlying validation error.
ReadmeTrue
The readme field was set to the literal true. The schema only
accepts a string, the literal false, or absence; true is
rejected with a dedicated message because it is a common authoring
mistake (mirroring false to mean “enable the default readme”).
InvalidDependencyName(String)
A dependency key is not a valid WDL identifier.
DuplicateDependencyName(String, String)
Two dependency keys resolve to the same dependency (either identical or equivalent after hyphen-to-underscore normalization).
DependencySource(DependencySourceError)
A dependency declaration is invalid.
License(LicenseError)
The license field is not a valid SPDX expression.
Io
An I/O error occurred reading the manifest from disk.
Trait Implementations§
Source§impl Debug for ManifestError
impl Debug for ManifestError
Source§impl Display for ManifestError
impl Display for ManifestError
Source§impl Error for ManifestError
impl Error for ManifestError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()