Keys of empty values are not removed #40

Open
opened 2020-12-09 16:53:41 -05:00 by russellballestrini · 1 comment
russellballestrini commented 2020-12-09 16:53:41 -05:00 (Migrated from git2.unturf.com)

Created by: janemarshal

document = [ { 'taco' : {} } , { 'salsa' : [ { 'burrito' : { 'taco' : 69 } } ] } ]
nested_delete(document, 'taco')

Response: [{'taco': {}}, {'salsa': [{'burrito': {}}]}]

*Created by: janemarshal* document = [ { 'taco' : {} } , { 'salsa' : [ { 'burrito' : { 'taco' : 69 } } ] } ] nested_delete(document, 'taco') Response: [{'taco': {}}, {'salsa': [{'burrito': {}}]}]
russellballestrini commented 2021-02-07 17:01:53 -05:00 (Migrated from git2.unturf.com)

Created by: russellballestrini

Help wanted. I would start by writing a test case using something similar to @janemarshal's issue report and create a pull request with that failing test and then a test which fixes the test. Ideally in two separate commits of a single pull request.

https://russell.ballestrini.net/tips-for-getting-pull-requests-approved/

*Created by: russellballestrini* Help wanted. I would start by writing a test case using something similar to @janemarshal's issue report and create a pull request with that failing test and then a test which fixes the test. Ideally in two separate commits of a single pull request. https://russell.ballestrini.net/tips-for-getting-pull-requests-approved/
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: python/nested-lookup#40
No description provided.