Skip to content

Blazored.FluentValidation #9

@vdht

Description

@vdht

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions