Commit b759975
fix: IsValid accepts empty strings for non-nullable string fields (20.0.3) (#461)
PacketBase.IsValid constructed RequiredAttribute with default
AllowEmptyStrings=false, so a non-nullable string property with an
empty value (e.g. NsTestPacket.LeadingBlank = "" that models the
literal double-space token) failed validation with
"The <Type> field is required.". Empty tokens are legal on the wire;
allow them.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 41cf996 commit b759975
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
0 commit comments