argilla-io / argilla

Argilla is a collaboration tool for AI engineers and domain experts to build high-quality datasets
https://docs.argilla.io
Apache License 2.0
4k stars 378 forks source link

[BUGFIX] `argilla`: prevent enum literal validation errors #5679

Open frascuchon opened 2 weeks ago

frascuchon commented 2 weeks ago

Description

In some environments, working with enun instances as string values may lead to some validation errors. See this discord discussion.

This PR reviews how metadata settings classes are defined, and defines type directly as a literal string, in the same way we do fo questions or fields, instead of using the MetadataPropertyType class.

Type of change

How Has This Been Tested

Checklist