diff --git a/config_converter/validators/schema.py b/config_converter/validators/schema.py index 9271417..4e4c86f 100644 --- a/config_converter/validators/schema.py +++ b/config_converter/validators/schema.py @@ -231,7 +231,7 @@ class SchemaValidator: if prop.name in value: prop_value = value[prop.name] prop_props: List[SchemaProperty] = prop.properties if prop.properties else [] - prop_schema = InferredSchema(root_type=prop.type, properties=prop_props) # type: ignore[arg-type] + prop_schema = InferredSchema(root_type=prop.type, properties=prop_props) self._validate_value(prop_value, prop_schema, prop_path, errors) elif prop.required: errors.append(f"{prop_path}: required property missing") @@ -242,7 +242,7 @@ class SchemaValidator: return False if isinstance(value, list) and schema.items: item_props: List[SchemaProperty] = schema.items.properties if schema.items.properties else [] - item_schema = InferredSchema(root_type=schema.items.type, properties=item_props) # type: ignore[arg-type] + item_schema = InferredSchema(root_type=schema.items.type, properties=item_props) for i, item in enumerate(value): self._validate_value(item, item_schema, f"{path}[{i}]", errors)