Function validate
Source pub fn validate(
file: Option<PathBuf>,
schema: Option<PackageInfoSchema>,
) -> Result<(), Error>
Expand description
Validate a file according to a PKGINFO schema.
This is a thin wrapper around parse
that only checks if the file is valid.
ยงErrors
Returns an error if parsing file
fails.