Skip to content

AddFluentValidationAutoValidation without controllers #142

@stigc

Description

@stigc

When using minimal API without controllers e.g.

var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();

app.MapGet("/", (MyDto dto) => "Hello World!");

app.Run();

is it possible to wire up automatic validation?

services.AddFluentValidationAutoValidation();

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