'fileinfo' must be validated (e.g., 'tuf.formats.FILEINFO_SCHEMA.check_match(fileinfo)').  'hashes' cannot be set to None, it must be of type HASHDICT_SCHEMA.