From 96b6b690dce6c2760c1d169b62d3ff7b0aba2e63 Mon Sep 17 00:00:00 2001 From: Michael Joyce Date: Tue, 9 Mar 2021 13:25:27 -0800 Subject: [PATCH] Issue #318 - Fix validation error message sorting issue Remove sorting of validation error message to resolve TypeError. Note, we could implementation our own exception here and address this issue but I haven't noticed a problem with not sorting the messages. Resolve #318 --- ait/core/val.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ait/core/val.py b/ait/core/val.py index f2318728..b747eda4 100644 --- a/ait/core/val.py +++ b/ait/core/val.py @@ -388,7 +388,7 @@ def schema_val(self, messages=None): # Loop through the errors (if any) and set valid = False if any are found # Display the error message - for error in sorted(v.iter_errors(data)): + for error in v.iter_errors(data): msg = "Schema-based validation failed for YAML file '" + self._ymlfile + "'" self.ehandler.process(docnum, self._ymlproc.doclines, error, messages) valid = False