rwnx / pynonymizer

A universal tool for translating sensitive production database dumps into anonymized copies.
https://pypi.org/project/pynonymizer/
MIT License
102 stars 38 forks source link

Fix bug with literal column configs containing `type` #82

Closed alex-grover closed 3 years ago

alex-grover commented 3 years ago

Currently, there's an issue with the parser where the column strategy is assumed to be a dict if it contains type. This breaks if the column strategy is a string that happens to contain type as a substring, because the parser incorrectly assumes it's a dict with type as a key.

rwnx commented 3 years ago

This is a nice PR! thanks for your contribution 👏

rwnx commented 3 years ago

@ajgrover I've bundled this as v1.21.2 which should release shortly. if you're still encountering issues let's open an issue and go from there ✨

alex-grover commented 3 years ago

awesome, thank you!