Commit 12baa82
authored
Remove collect_violations(..., into=) argument (#365)
At risk of Chesterton's fencing myself, but I don't think this argument
is needed or ever used (other than in tests). I can't think of a reason
why someone would want to shove multiple validations into the same
validation, instead of simply calling `collect_violations` multiple
times and combining the lists afterwards.
I did some `git blame` spelunking and it looks like this originally
turned up in #32, but didn't see much reasoning for it in that PR. The
PR mentioned both Pydantic and making things closer to
protovalidate-go's API, but neither seem to have a similar style of
reusing a returned error/exception like this.
Stacked on #364 as these both munge with the exported API & docstrings;
will tag a `v0.15.0` release once all of this is merged.1 parent 9d49e82 commit 12baa82
File tree
3 files changed
+3
-24
lines changed- protovalidate
- internal
- test
3 files changed
+3
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
| 270 | + | |
271 | 271 | | |
272 | | - | |
273 | | - | |
274 | | - | |
| 272 | + | |
275 | 273 | | |
276 | 274 | | |
277 | 275 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
| |||
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
66 | | - | |
67 | 64 | | |
68 | 65 | | |
69 | 66 | | |
| |||
77 | 74 | | |
78 | 75 | | |
79 | 76 | | |
80 | | - | |
81 | | - | |
82 | 77 | | |
83 | 78 | | |
84 | 79 | | |
85 | | - | |
| 80 | + | |
86 | 81 | | |
87 | 82 | | |
88 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | 88 | | |
103 | 89 | | |
104 | 90 | | |
| |||
0 commit comments