Skip to content

Commit a667a47

Browse files
authored
remove redundant interpolation from asyncapi (#7801)
1 parent e9d9201 commit a667a47

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

samples/asyncapi/custom-message-types/Core_9/AsyncAPI.Feature/ApiDocumentGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void GenerateChannels(IV3AsyncApiDocumentBuilder document, AsyncApiDocumentGener
3939
//get all published events
4040
foreach (var (actualType, publishedType) in typeCache.PublishedEventCache.Select(kvp => (kvp.Key, kvp.Value)))
4141
{
42-
var channelName = $"{publishedType.FullName!}";
42+
var channelName = publishedType.FullName!;
4343
document.WithChannel(channelName, channel =>
4444
{
4545
channelBuilder = channel;
@@ -75,7 +75,7 @@ static void GenerateV3OperationFor(IV3AsyncApiDocumentBuilder document, string c
7575
.WithSchema(requestMessagePayloadSchema));
7676
});
7777

78-
var operationName = $"{producedType.FullName!}";
78+
var operationName = producedType.FullName!;
7979
document.WithOperation(operationName, operation =>
8080
{
8181
operation

samples/asyncapi/simple/Core_9/AsyncAPI.Feature/ApiDocumentGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void GenerateChannels(IV3AsyncApiDocumentBuilder document, AsyncApiDocumentGener
3838
#region GenerateChannelsForEvents
3939
foreach (var publishedEvent in typeCache.Events)
4040
{
41-
var channelName = $"{publishedEvent.FullName!}";
41+
var channelName = publishedEvent.FullName!;
4242
document.WithChannel(channelName, channel =>
4343
{
4444
channelBuilder = channel;
@@ -79,7 +79,7 @@ static void GenerateV3OperationFor(IV3AsyncApiDocumentBuilder document, string c
7979
.WithSchema(requestMessagePayloadSchema));
8080
});
8181

82-
var operationName = $"{eventType.FullName!}";
82+
var operationName = eventType.FullName!;
8383
document.WithOperation(operationName, operation =>
8484
{
8585
operation

0 commit comments

Comments
 (0)