Skip to content

DecimalField cannot be validated with MinMax validator #201

@icovada

Description

@icovada

Environment

  • Python version: 3.11
  • Nautobot version: 2.4.8
  • nautobot-data-validation-engine version:

Expected Behavior

When trying to validate a DecimalField, a MinMax validator should throw an error as the field is not a number and cannot be cast into an integer or a float without losing precision

Observed Behavior

No error given, but validation fails when the object is failed

Steps to Reproduce

  1. Try to create a validation against Location field longitude
  2. Edit a location
  3. Get this error message:
Longitude in decimal format (xx.yyyyyy)

    Unable to validate against min/max rule Rulename because the field value is not numeric.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions