Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/franzasilva/globalerrorhandlingvalidation


https://github.com/franzasilva/globalerrorhandlingvalidation

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Validating inputs with FluentValidation, MediatR and Global Error Handling
- [.NET 8](https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-8/overview);
- [IExceptionHandler](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/error-handling?view=aspnetcore-8.0#iexceptionhandler);
- [minimal API](https://learn.microsoft.com/en-us/aspnet/core/tutorials/min-web-api?view=aspnetcore-8.0&tabs=visual-studio);
- [MediatR](https://github.com/jbogard/MediatR);
- [FluentValidation](https://docs.fluentvalidation.net/en/latest/).

**Use Swagger for testing**
![image](https://github.com/user-attachments/assets/8b8cc1ee-1f31-4b2e-8933-ef0b9de52aa3)

Using valid values
![image](https://github.com/user-attachments/assets/6647510b-2750-4e8d-90cf-75535f959444)

Using invalid values
![image](https://github.com/user-attachments/assets/616b5e82-422a-40ce-9195-6f11d5b31226)

![image](https://github.com/user-attachments/assets/7a8d9973-4010-4e6b-9ac3-91071fa19bc5)