fix oneOf attribute logic