Skip to content

Deprecation warnings about PluginCustomValidator usage by this app #181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
glennmatthews opened this issue Oct 1, 2024 · 0 comments · May be fixed by #199
Open

Deprecation warnings about PluginCustomValidator usage by this app #181

glennmatthews opened this issue Oct 1, 2024 · 0 comments · May be fixed by #199
Labels
type: housekeeping Changes to the application which do not directly impact the end user

Comments

@glennmatthews
Copy link
Contributor

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

@gsnider2195 gsnider2195 added type: housekeeping Changes to the application which do not directly impact the end user and removed housekeeping labels Feb 14, 2025
nrnvgh added a commit to nrnvgh/nautobot-app-data-validation-engine that referenced this issue Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: housekeeping Changes to the application which do not directly impact the end user
Projects
None yet
3 participants