Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: sets
use_enum_values
to True
to avoid problems with client `…
…DatasetConfig` serialization (#4172) # Description I couldn't reproduce the error locally but looks like `use_enum_values` could potentially solve the problem: ```python In [17]: class Response(BaseModel): ...: status: ResponseStatus ...: In [18]: Response(status=ResponseStatus.draft) Out[18]: Response(status=<ResponseStatus.draft: 'draft'>) In [19]: class Response(BaseModel): ...: status: ResponseStatus ...: class Config: ...: use_enum_values = True ...: In [20]: Response(status=ResponseStatus.draft) Out[20]: Response(status='draft') ``` Closes #4089 **Type of change** - [x] Bug fix (non-breaking change which fixes an issue) **How Has This Been Tested** If it's really difficult to test because it was happening only in some specific environments. Even when environments with the same dependencies and configuration. **Checklist** - [ ] I added relevant documentation - [x] follows the style guidelines of this project - [x] I did a self-review of my code - [ ] I made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I filled out [the contributor form](https://tally.so/r/n9XrxK) (see text above) - [x] I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/) --------- Co-authored-by: Francisco Aranda <[email protected]>
- Loading branch information