OneOf validator behavior inverted - validates when value is in choices
OneOf validator behavior inverted - validates when value is in choices: a task in harness-adapters: Agentic coding environments (Harbor dataset). The OneOf validator is behaving incorrectly - it's raising ValidationError when the value IS in the choices list, instead of when it's NOT in the…
The task
The OneOf validator is behaving incorrectly - it's raising ValidationError when the value IS in the choices list, instead of when it's NOT in the choices list. Additionally, it's returning None instead of the validated value.
Part of harness-hub/harness-adapters.