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

Blazored.FluentValidation #9

Open
vdht opened this issue Jan 9, 2023 · 0 comments
Open

Blazored.FluentValidation #9

vdht opened this issue Jan 9, 2023 · 0 comments

Comments

@vdht
Copy link

vdht commented Jan 9, 2023

First of all thank you for this template, Jason! This saves me a lot!

I was wondering why client validation is not involved in this template? In the TodoLists.razor component there is an EditForm to create a new ToDo list based on the TodoListDto class. I noticed that the client validation is not triggered / not used because the TodoListDto has no validator configured. I do see but that doesn't do anything because there is no DI configuration in program.cs for this. Only the server side validation "CreateTodoListRequestValidator" is triggered. It this on purpose? What is the best practice in combination with clean architecture? Should I add client validation on the ToListDto class or should I use the CreateTodoListRequest class as model for the EditForm?

Thanks!
Tim

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

No branches or pull requests

1 participant