Update the oneOf rule to handle objects with ids