File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ Unreleased
10
10
11
11
.. vendor-insert-here
12
12
13
+ - Fix a minor bug with the verbose output introduced in v0.26.2
14
+
13
15
0.26.2
14
16
------
15
17
Original file line number Diff line number Diff line change @@ -69,9 +69,11 @@ def _build_result(self) -> CheckResult:
69
69
result .record_parse_error (path , data )
70
70
else :
71
71
validator = self .get_validator (path , data )
72
+ passing = True
72
73
for err in validator .iter_errors (data ):
73
74
result .record_validation_error (path , err )
74
- else :
75
+ passing = False
76
+ if passing :
75
77
result .record_validation_success (path )
76
78
return result
77
79
Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ def _dump_parse_errors(
199
199
def report_errors (self , result : CheckResult ) -> None :
200
200
report_obj : dict [str , t .Any ] = {"status" : "fail" }
201
201
if self .verbosity > 1 :
202
- report_obj ["checked_paths " ] = list (result .successes )
202
+ report_obj ["successes " ] = list (result .successes )
203
203
if self .verbosity > 0 :
204
204
report_obj ["errors" ] = list (self ._dump_error_map (result .validation_errors ))
205
205
report_obj ["parse_errors" ] = list (
You can’t perform that action at this time.
0 commit comments