summaryrefslogtreecommitdiff
path: root/src/buildstream/_loader/types.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/_loader/types.pyx')
-rw-r--r--src/buildstream/_loader/types.pyx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/_loader/types.pyx b/src/buildstream/_loader/types.pyx
index 3a415afc9..5b8388e28 100644
--- a/src/buildstream/_loader/types.pyx
+++ b/src/buildstream/_loader/types.pyx
@@ -79,10 +79,10 @@ cdef class Dependency:
elif type(dep) is _yaml.MappingNode:
if default_dep_type:
- _yaml.node_validate(<_yaml.Node> dep, ['filename', 'junction'])
+ (<_yaml.MappingNode> dep).validate_keys(['filename', 'junction'])
dep_type = default_dep_type
else:
- _yaml.node_validate(<_yaml.Node> dep, ['filename', 'type', 'junction'])
+ (<_yaml.MappingNode> dep).validate_keys(['filename', 'type', 'junction'])
# Make type optional, for this we set it to None
dep_type = (<_yaml.MappingNode> dep).get_str(<str> Symbol.TYPE, None)