Troubleshooting & Roslyn Diagnostics (DP0001-DP1005)
| ID | Severity | Meaning & Fix |
|---|---|---|
DP0001–DP0003 |
Error | Type must be partial, readonly, and record struct |
DP0004–DP0006 |
Error | Invalid regex pattern, conflicting normalization flags, or invalid min/max bounds |
DP0007 |
Warning | Avoid new T() / default(T) bypassing Create() |
DP0008 |
Error | [ValueObject] property requires init or readonly |
DP0009 |
Warning | Primitive declares no validation rules |
DP0010–DP0011 |
Warning | Raw string compared with or assigned from a DomainPrimitive |
DP0012 |
Warning | Public constructor bypasses factory validation |
DP0013–DP0016 |
Info/Warn | Duplicate primitive logic, API surface budget, missing XML docs, invalid factory name |
DP0017 |
Error | Invalid ExceptionType configured in [DomainPrimitivesDefaults] |
DP0018 |
Warning | Mutable collection inside [ValueObject] (added in v3.0.0) |
All five generator diagnostics (EricksonLopez.DomainPrimitives.Generators) have Error severity: DP1001 (must be partial), DP1002 (must be readonly record struct), DP1003 (unsupported backing type), DP1004 (conflicting attributes), and DP1005 (invalid attribute parameter).