def _check_clean_steps(clean_steps):
    try:
        jsonschema.validate(clean_steps, _CLEAN_STEPS_SCHEMA)
    except jsonschema.ValidationError as exc:
        raise exception.InvalidParameterValue(_('Invalid clean_steps: %s') %
                                              exc)
Ensure all necessary keys are present and correct in clean steps.
dataset/ETHPy150Open openstack/ironic/ironic/api/controllers/v1/node.py/_check_clean_steps