HF RL Explorer

OneOf validator raises error for valid values

OneOf validator raises error for valid values: a task in harness-adapters: Agentic coding environments (Harbor dataset). The OneOf validator is incorrectly raising ValidationError for values that should be valid. When a value is present in the choices list, it should pass validation, but instead…

The task

The OneOf validator is incorrectly raising ValidationError for values that should be valid. When a value is present in the choices list, it should pass validation, but instead it's throwing an error saying the value must be one of the allowed choices.

Part of harness-hub/harness-adapters.