diff options
| author | Kostya <mail@sartin.in> | 2026-10-08 11:24:18 +0300 |
|---|---|---|
| committer | Kostya <mail@sartin.in> | 2026-10-08 11:24:45 +0300 |
| commit | 930eb953e8cb598a99002cb41f3b8f57d05f1fa7 (patch) | |
| tree | eab822cb5ce7eb4bc56908d944519c34981473a2 /ui-desktop/.project | |
| parent | 1a8b75f96f0c6855581be3a38069f09eca37d1f5 (diff) | |
| download | guess-market-930eb953e8cb598a99002cb41f3b8f57d05f1fa7.tar.gz guess-market-930eb953e8cb598a99002cb41f3b8f57d05f1fa7.tar.xz guess-market-930eb953e8cb598a99002cb41f3b8f57d05f1fa7.zip | |
catalog: add v3 XML validator for cumulative uploads
Schema v3 drops event ids and users, and uploads now add to a live
market instead of replacing it. Validate a v3 document against the
Exercise 1 rules (commission 0-90%, positive b and d, non-negative
initial inventory, a known trading method), require exactly two
options per event, and treat the event name as its identity: reject
names that repeat within the file or collide with an event already in
the repository, ignoring case and surrounding whitespace.
The validator works on the unmarshalled object graph only and never
touches the repository beyond reading it, so a rejected upload leaves
the market untouched.
Diffstat (limited to 'ui-desktop/.project')
0 files changed, 0 insertions, 0 deletions