Skip to content

🏗 Standardize validation result formats across all plugins #177

Open
@ahmad-ibra

Description

@ahmad-ibra

Description

Currently we have no standard for how we build and maintain a validation result. Each plugin creates the validation results in their own unique way. This leads us to a situation where results in each plugin look slightly different.

This should be something that the validator handles. By implementing this common code within the validator, we can also reduce the amount of code in each plugin making them more maintainable.

We should consider all the unique ways each plugin handles the creating and maintaining their own validation results and ensure our chosen solution works for each use case.

Expected Behavior

  • The validator has a generic function for creating a validation result which should be imported and used by each plugin
  • The validator exposes standard functions for adding messages, details, errors, etc to the validation result which again are used by each validator plugin
  • The validator exposes utility functions for string formatting that each plugin uses for consistency

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions