diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index abfe085..1bc9fa5 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 5.5.4 +- fixed + - Fixed an issue where teh async api schema generation was not working properly with Saunter 5.5.3 + ## 5.5.3 - Changed - Saunter nuget updated to v0.13.0 (Veracode flaw related to Newtonsoft 0.9.*) diff --git a/src/Ev.ServiceBus.AsyncApi/DocumentFilter.cs b/src/Ev.ServiceBus.AsyncApi/DocumentFilter.cs index d13c541..7269059 100644 --- a/src/Ev.ServiceBus.AsyncApi/DocumentFilter.cs +++ b/src/Ev.ServiceBus.AsyncApi/DocumentFilter.cs @@ -116,7 +116,7 @@ private IMessage GenerateMessage(string payloadTypeId, Type payloadType, Documen { var message = new Message() { - Name = payloadTypeId.Replace("/", "¤"), + Name = payloadTypeId.Replace("/", "*"), Payload = GetOrCreatePayloadSchema(payloadType, context), ContentType = "application/json", Title = payloadTypeId, diff --git a/tests/Ev.ServiceBus.AsyncApi.UnitTests/DocumentFilterTest.cs b/tests/Ev.ServiceBus.AsyncApi.UnitTests/DocumentFilterTest.cs index d26ee7c..736334b 100644 --- a/tests/Ev.ServiceBus.AsyncApi.UnitTests/DocumentFilterTest.cs +++ b/tests/Ev.ServiceBus.AsyncApi.UnitTests/DocumentFilterTest.cs @@ -107,7 +107,7 @@ public async Task CheckStateOfSenderApp() "$ref": "#/components/messages/WeatherForecast" }, { - "$ref": "#/components/messages/User¤UserCreated" + "$ref": "#/components/messages/User*UserCreated" } ] } @@ -251,12 +251,12 @@ public async Task CheckStateOfSenderApp() } } }, - "User¤UserCreated": { + "User*UserCreated": { "payload": { "$ref": "#/components/schemas/userCreated" }, "contentType": "application/json", - "name": "User¤UserCreated", + "name": "User*UserCreated", "title": "User/UserCreated", "tags": [ {