From 158fe43eadbc91f25627d6b61936d47129ce3f32 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 14 Oct 2026 16:05:05 +0000 Subject: [PATCH 1/2] Initial plan From 536c0ebf48bd45faec25952c928519562bf1ec2a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 14 Oct 2026 16:07:52 +0000 Subject: [PATCH 2/2] Add README badges and package-selection table for the 10 published packages Co-authored-by: Romain-OD <31764259+Romain-OD@users.noreply.github.com> --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index bd5fb29..0a9d9b7 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # MessageValidation +[![NuGet](https://img.shields.io/nuget/v/MessageValidation.svg)](https://www.nuget.org/packages/MessageValidation/) +[![Downloads](https://img.shields.io/nuget/dt/MessageValidation.svg)](https://www.nuget.org/packages/MessageValidation/) +[![Build](https://github.com/Romain-OD/MessageValidation/actions/workflows/build.yml/badge.svg)](https://github.com/Romain-OD/MessageValidation/actions/workflows/build.yml) +[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) + A **protocol-agnostic message validation pipeline** for .NET — validate incoming messages from MQTT, RabbitMQ, Kafka, Azure Service Bus, NATS, or any messaging transport with DI integration, pluggable validation, and configurable failure handling. ## Why? @@ -20,6 +25,28 @@ The core has **zero opinion** on which messaging library or validation framework dotnet add package MessageValidation ``` +The core package alone is not enough for a specific transport — pick **one transport package** and **one validation package** below; both pull in the core automatically. + +| Package | Use it for | +|---|---| +| `MessageValidation` | Core pipeline — always required | +| `MessageValidation.RabbitMQ` | RabbitMQ consumers | +| `MessageValidation.Kafka` | Kafka consumers | +| `MessageValidation.MqttNet` | MQTT clients and brokers | +| `MessageValidation.NatsNet` | NATS subscribers | +| `MessageValidation.AzureServiceBus` | Azure Service Bus processors | +| `MessageValidation.AzureEventHubs` | Azure Event Hubs processors | +| `MessageValidation.FluentValidation` | Validate with FluentValidation | +| `MessageValidation.DataAnnotations` | Validate with DataAnnotations | +| `MessageValidation.ImmediateValidations` | Validate with Immediate.Validations | + +For example, a Kafka consumer validated with FluentValidation: + +```bash +dotnet add package MessageValidation.Kafka +dotnet add package MessageValidation.FluentValidation +``` + ## Quick Start ### 1. Define your message @@ -403,6 +430,7 @@ when the predicate returns `true`, just like `IApplicationBuilder.Map`. | `MessageValidation.AzureServiceBus` | Azure Service Bus transport hook | ✅ Available | [README](MessageValidation.AzureServiceBus/README.md) | | `MessageValidation.AzureEventHubs` | Azure Event Hubs transport hook | ✅ Available | [README](MessageValidation.AzureEventHubs/README.md) | | `MessageValidation.NatsNet` | NATS transport hook (NATS.Net) | ✅ Available | [README](MessageValidation.NatsNet/README.md) | +| `MessageValidation.ImmediateValidations` | Immediate.Validations adapter | ✅ Available | [README](MessageValidation.ImmediateValidations/README.md) | ## Roadmap