File tree 2 files changed +6
-3
lines changed
test_data/schema_validation
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ nested_person3 = NestedPerson {
58
58
}
59
59
}
60
60
61
- # Test case 7: Invalid instance - missing required 'age' attribute
61
+ # Test case 7: Invalid instance - missing required 'age' attribute in lambda return
62
62
# Expected error: Missing required attributes in Person instance: age
63
63
# Expected error line: 70
64
64
CreateTest = lambda name: str -> NestedPerson {
Original file line number Diff line number Diff line change @@ -172,6 +172,9 @@ fn validate_schema_instance(
172
172
for item in & config_expr. items {
173
173
if let Node {
174
174
node : Expr :: Schema ( _) ,
175
+ filename,
176
+ line,
177
+ column,
175
178
..
176
179
} = & * item. node . value
177
180
{
@@ -183,8 +186,8 @@ fn validate_schema_instance(
183
186
& nested_assign,
184
187
schema_attrs,
185
188
filename,
186
- line,
187
- column,
189
+ * line,
190
+ * column,
188
191
diagnostics,
189
192
) ;
190
193
}
You can’t perform that action at this time.
0 commit comments