pub fn parse_artifact(bytes: &[u8]) -> Result<Artifact, ModelError>
Parse an artifact and validate it.
Returns an error when JSON or artifact constraints fail.