Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/franzasilva/globalerrorhandlingvalidation
https://github.com/franzasilva/globalerrorhandlingvalidation
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/franzasilva/globalerrorhandlingvalidation
- Owner: franzASilva
- Created: 2024-08-19T00:18:04.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-08-22T17:01:04.000Z (5 months ago)
- Last Synced: 2024-08-22T19:13:28.552Z (5 months ago)
- Language: C#
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)