Skip to content

Commit

Permalink
Do not mark require-failed error as error
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Dec 18, 2023
1 parent 1f3539d commit 2343d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ogc/bblocks/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2343d5a

Please sign in to comment.