Skip to content

Commit b5820b8

Browse files
committed
Adjust type name to new specs
1 parent 958c13d commit b5820b8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Contracts/Events/EventPayload.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
namespace Contracts.Events;
1515
using System;
1616
using System.Collections.Generic;
17+
using System.ComponentModel;
1718
using System.Text.Json.Nodes;
1819
using System.Text.Json.Serialization;
1920
using Microsoft.IdentityModel.Tokens;
@@ -27,6 +28,7 @@ public enum EventPayloadType
2728
NotDeleted
2829
}
2930

31+
3032
public class EventPayload : IComparable<EventPayload>
3133
{
3234
public const string SCHEMA_URL = "https://api.swaggerhub.com/domains/Plattform_i40/Part1-MetaModel-Schemas/V3.1.0#/components/schemas/";
@@ -72,8 +74,9 @@ public EventPayload(bool isREST)
7274

7375
public void SetType(EventPayloadType type)
7476
{
75-
this.type = type.ToString();
7677
this.eventPayloadEntryType = type;
78+
this.type = $"io.admin-shell.events.v1.{type.ToString()?.ToLower()}";
79+
7780
}
7881

7982
public string GetSubdmodelId()

0 commit comments

Comments
 (0)