Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Validata
Validata Core
Commits
bf3f9687
Commit
bf3f9687
authored
Feb 18, 2021
by
Pierre Dittgen
Browse files
Adapt to frictionless API changes
parent
456a860f
Changes
1
Hide whitespace changes
Inline
Side-by-side
validata_core/custom_checks/missing_required_header.py
View file @
bf3f9687
...
...
@@ -27,7 +27,7 @@ class MissingRequiredHeader(Check):
super
().
__init__
(
descriptor
)
self
.
__required_field_names
=
self
.
get
(
"required_field_names"
)
def
validate_
header
(
self
):
def
validate_
start
(
self
):
for
pos
,
field_name
in
enumerate
(
self
.
__required_field_names
):
if
field_name
not
in
self
.
resource
.
header
:
yield
MissingRequiredHeaderError
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment