No centralized validation layer for Shadowrun 5e domain rules #106

Closed
opened 2026-04-04 18:42:33 +02:00 by shahondin1624 · 0 comments
Owner

Description

Business rules (essence max 6.0, attribute limits per metatype, wound modifier -1 per 3 boxes, etc.) are scattered across UI and model classes. No centralized validator exists, making it possible to create invalid character states by bypassing the UI.

Expected Behavior

  • Centralized validation module that enforces SR5e rules
  • Validation invoked on model changes (not just UI input)
  • Clear error messages for rule violations

Acceptance Criteria

  • Validation module with rules for attributes, essence, damage, etc.
  • Validation runs on character state changes
  • Invalid states produce clear error messages
  • UI uses the same validation as the model layer
  • Unit tests for key validation rules
## Description Business rules (essence max 6.0, attribute limits per metatype, wound modifier -1 per 3 boxes, etc.) are scattered across UI and model classes. No centralized validator exists, making it possible to create invalid character states by bypassing the UI. ## Expected Behavior - Centralized validation module that enforces SR5e rules - Validation invoked on model changes (not just UI input) - Clear error messages for rule violations ## Acceptance Criteria - [ ] Validation module with rules for attributes, essence, damage, etc. - [ ] Validation runs on character state changes - [ ] Invalid states produce clear error messages - [ ] UI uses the same validation as the model layer - [ ] Unit tests for key validation rules
shahondin1624 added the priority:should-havetype:architecture labels 2026-04-04 18:42:33 +02:00
Sign in to join this conversation.