Commit 6764f5e
committed
Enforce DatabaseSettings validation in AddInfrastructure for all host modes
Move ValidateDataAnnotations/ValidateOnStart for DatabaseSettings from the
API-only OptionsValidationRegistration into AddInfrastructure so that CLI
and MCP hosts also enforce the [Range(1, 300)] constraint on
CommandTimeoutSeconds at startup. Remove the now-duplicate registration from
OptionsValidationRegistration.1 parent ab5eac7 commit 6764f5e
2 files changed
Lines changed: 8 additions & 4 deletions
File tree
- backend/src
- Taskdeck.Api/Extensions
- Taskdeck.Infrastructure
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 48 | | |
53 | 49 | | |
54 | 50 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
26 | 34 | | |
27 | 35 | | |
28 | 36 | | |
| |||
0 commit comments