supporting oneOf and pattern entries