new api for Op#validate.