fixes oneOf, enum fragment