Add oneOf() constraint which checks whether the value is one of
specified strings.