File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ def traverse_dfs(path: str, data: Any):
160160 except (GeneratorExit , StopIteration ):
161161 if feed :
162162 items_to_remove .append (name )
163- if sticky_feed and item == {}:
163+ elif sticky_feed and item == {}:
164164 items_to_remove .append (name )
165165
166166 for item in items_to_remove :
Original file line number Diff line number Diff line change @@ -52,3 +52,14 @@ def test_extract_schemas_to_scan_configs():
5252 'properties' : {'x' : {'$ref' : '#/definitions/Z' }},
5353 },
5454 }
55+
56+
57+ def test_extract_schemas_to_scan_no_duplicate_deletion ():
58+ items = [main .NameMapItem ('/.*=SomeType' )]
59+ data = {
60+ 'schema' : {
61+ 'field' : {'type' : 'integer' },
62+ },
63+ }
64+ result = main .extract_schemas_to_scan (data , items )
65+ assert result ['/schema/field/' ] == {'type' : 'integer' }
You can’t perform that action at this time.
0 commit comments