alecthomas / voluptuous

CONTRIBUTIONS ONLY: Voluptuous, despite the name, is a Python data validation library.
https://pypi.org/project/voluptuous
BSD 3-Clause "New" or "Revised" License
1.82k stars 218 forks source link

Support for deleting non-required keys #384

Closed kozisek closed 5 years ago

kozisek commented 5 years ago

Not sure if this has already been implemented, but couldn't find it in any existing issues or documentation.

It would be beneficial if (instead of removing keys outside of a schema) it were be possible to remove keys which are not required, just optional.

This way, only just-required configurations could be generated from existing ones.