Skip to content
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

Expose validation rules via schema / field #39

Open
benmccallum opened this issue Feb 20, 2021 · 1 comment
Open

Expose validation rules via schema / field #39

benmccallum opened this issue Feb 20, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@benmccallum
Copy link
Owner

benmccallum commented Feb 20, 2021

Goals:

  1. Expose FluentValidation rules via schema
  2. Accessibility - support pulling validation copy from resource files globalization (i18n)

Stretch goals:

  1. Support/execute + expose DataAnnotation attributes
@benmccallum benmccallum added the enhancement New feature or request label Feb 20, 2021
@benmccallum
Copy link
Owner Author

  1. Needs investigation as we need to see if / how FluentValidation rules turn into metadata in the MVC integration and how we could repurpose that out of the schema. @jmercha suggested we could use / take inspiration from the FV ASP.NET Core adapters here

  2. I think this is something that wouldn't be solved by FairyBread, but by an existing globalization technique for FV. Surely there's a solution out there that folks can plug in already. Needs research.

Stretch goal 1. As mentioned previously, keen to not support data annotations, I'd like to keep this library focused solely on FluentValidation, but if enough people ask I'm open to considering how we might do it. Maybe there's a benefit for people exposing annotated EF models directly as inputs, but I personally would never be doing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant