aboutsummaryrefslogtreecommitdiffstats
path: root/ui-desktop/src/main/resources
diff options
context:
space:
mode:
authorKostya <mail@sartin.in>2026-10-08 11:24:18 +0300
committerKostya <mail@sartin.in>2026-10-08 11:24:45 +0300
commit930eb953e8cb598a99002cb41f3b8f57d05f1fa7 (patch)
treeeab822cb5ce7eb4bc56908d944519c34981473a2 /ui-desktop/src/main/resources
parent1a8b75f96f0c6855581be3a38069f09eca37d1f5 (diff)
downloadguess-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/src/main/resources')
0 files changed, 0 insertions, 0 deletions