Skip to main content

Module validation

Module validation 

Source

Structs§

Validated
What a report that passed validation stores.

Constants§

MAX_BODY_BYTES
A real report is a few hundred bytes.
MAX_CONFLICTS
Kept from one report; the rest count as dropped.
MAX_FILE_BYTES
About a Windows path: anything longer is not a game file.
MAX_INSTALLER_LEN
MAX_PACKAGES
MIN_PACKAGES
A conflict needs two writers, and nobody sends nine by accident.

Functions§

is_usable 🔒
validate
A bad game, installer or an empty result rejects the report; a bad conflict is dropped and counted, so one malformed entry does not cost the rest.