nautobot-app-data-validation-engine icon indicating copy to clipboard operation
nautobot-app-data-validation-engine copied to clipboard

Deprecation warnings about `PluginCustomValidator` usage by this app

Open glennmatthews opened this issue 5 months ago • 0 comments

Environment

  • Python version:
  • Nautobot version: 2.3.5
  • nautobot-data-validation-engine version: 3.2.0

Expected Behavior

Nautobot to start up without deprecation warnings

Observed Behavior

With NAUTOBOT_LOG_DEPRECATION_WARNINGS enabled, one warning is emitted per model supporting custom validators, e.g.:

19:37:07.951 WARNING nautobot.core.utils.deprecation deprecation.py                   init_subclass() :
  Class PluginCustomValidator is deprecated, and will be removed in a future Nautobot release. Instead of deriving DcimPowerporttemplateCustomValidator from PluginCustomValidator, please migrate your code to inherit from class CustomValidator instead.

It looks like this warning was added in Nautobot v1.5.2 by nautobot/nautobot#2877 so it should be safe to switch to using CustomValidator under all current Nautobot versions.

Steps to Reproduce

glennmatthews avatar Oct 01 '24 19:10 glennmatthews