sonata-project / exporter

Lightweight Exporter library
https://docs.sonata-project.org/projects/exporter
MIT License
438 stars 88 forks source link

Allow to extract values from enum types at `AbstractPropertySourceIterator::getValue()` #648

Closed phansys closed 1 year ago

phansys commented 1 year ago

Subject

Allow to extract values from enum types at AbstractPropertySourceIterator::getValue()

I am targeting this branch, because this change respects BC.

Changelog

### Added
- Support for enum types in exported values.
phansys commented 1 year ago

Thanks for you review @VincentLanglet. I just made a new push adding an option to allow users to control the behavior for backed enums, in order to choose the enum's name even when the enum is backed.