From 2343d5a60d82f3253c7851bb27ccd94c85d245d8 Mon Sep 17 00:00:00 2001 From: Alejandro Villar Date: Mon, 18 Dec 2023 12:20:17 +0100 Subject: [PATCH] Do not mark require-failed error as error --- ogc/bblocks/validate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ogc/bblocks/validate.py b/ogc/bblocks/validate.py index de1c342..d88f836 100644 --- a/ogc/bblocks/validate.py +++ b/ogc/bblocks/validate.py @@ -100,7 +100,7 @@ def __init__(self, source: ValidationItemSource): def add_entry(self, entry: ValidationReportEntry): self._sections.setdefault(entry.section, []).append(entry) - if entry.is_error: + if entry.is_error and (not entry.payload or entry.payload.get('op') != 'require-fail'): self._has_errors = True if entry.is_global: self._has_general_errors = True