Skip to content

Validation: Remove invalid "fix" actions #96

@rkritika1508

Description

@rkritika1508

Is your feature request related to a problem?
Some validators incorrectly flag the entire string and return an empty response when the "fix" on fail action is not applicable. This leads to user confusion and an inability to handle failures correctly.

Describe the solution you'd like

  • Identify validators that have the "fix" on fail action but do not accept it.
  • Remove the "fix" on fail action from those validators.
  • Implement an error message to prompt users to change the on_fail action to exception.
Original issue

Describe the bug
A clear and concise description of what the bug is.
There are some validators where the "fix" on fail action will not work. It will flag the entire string as the culprit and return an empty string as the response. So, determine which are the validators with this behavior and add remove this action from those validators.
Basically, if "fix" is added in the validator which doesn't accept it, we throw an error which nudges the user to update the on_fail action to exception.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    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