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
1010
1111.. vendor-insert-here
1212
13+ - Fix a minor bug with the verbose output introduced in v0.26.2
14+
13150.26.2
1416------
1517
Original file line number Diff line number Diff line change @@ -69,9 +69,11 @@ def _build_result(self) -> CheckResult:
6969 result .record_parse_error (path , data )
7070 else :
7171 validator = self .get_validator (path , data )
72+ passing = True
7273 for err in validator .iter_errors (data ):
7374 result .record_validation_error (path , err )
74- else :
75+ passing = False
76+ if passing :
7577 result .record_validation_success (path )
7678 return result
7779
Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ def _dump_parse_errors(
199199 def report_errors (self , result : CheckResult ) -> None :
200200 report_obj : dict [str , t .Any ] = {"status" : "fail" }
201201 if self .verbosity > 1 :
202- report_obj ["checked_paths " ] = list (result .successes )
202+ report_obj ["successes " ] = list (result .successes )
203203 if self .verbosity > 0 :
204204 report_obj ["errors" ] = list (self ._dump_error_map (result .validation_errors ))
205205 report_obj ["parse_errors" ] = list (
You can’t perform that action at this time.
0 commit comments