Skip to content
This repository was archived by the owner on Jun 18, 2023. It is now read-only.

Commit 959dd4c

Browse files
timonbackstavshamir
authored andcommitted
Add optional message description for manual consumer/producer definition
1 parent c27a999 commit 959dd4c

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

src/app/channels/channel-main/channel-main.component.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<section>
22
<mat-divider></mat-divider>
3+
<div *ngIf="operation.message.description">
4+
<h4>{{ operation.message.description }}</h4>
5+
<mat-divider></mat-divider>
6+
</div>
37
<mat-tab-group animationDuration="0ms">
48
<mat-tab label="Example">
59
<div fxLayout="column">

src/app/shared/mock.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"message": {
2929
"name": "io.github.stavshamir.springwolf.example.dtos.AnotherPayloadDto",
3030
"title": "AnotherPayloadDto",
31+
"description": "Custom, optional description for this message",
3132
"payload": {
3233
"$ref": "#/components/schemas/AnotherPayloadDto"
3334
}
@@ -58,6 +59,7 @@
5859
{
5960
"name": "io.github.stavshamir.springwolf.example.dtos.ExamplePayloadDto",
6061
"title": "ExamplePayloadDto",
62+
"description": "Custom, optional description for this message",
6163
"payload": {
6264
"$ref": "#/components/schemas/ExamplePayloadDto"
6365
}
@@ -213,4 +215,4 @@
213215
}
214216
}
215217
}
216-
}
218+
}

src/app/shared/models/channel.model.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ export interface Operation {
1313
export interface Message {
1414
name: string;
1515
title: string;
16+
description?: string;
1617
payload: { $ref: string };
1718
}

0 commit comments

Comments
 (0)