Skip to content

Commit

Permalink
Updated conversion from CodecWithInfo into asyncapi.Message. (#3757)
Browse files Browse the repository at this point in the history
Co-authored-by: Kamil Kloch <[email protected]>
  • Loading branch information
kamilkloch and Kamil Kloch authored May 11, 2024
1 parent e7e4ed8 commit 62afd02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private[asyncapi] class MessagesForEndpoints(tschemaToASchema: TSchemaToASchema,
Nil,
None,
Nil,
if (convertedExamples.isEmpty) Nil else List(Map("payload" -> convertedExamples)),
convertedExamples.map(example => Map("payload" -> (example :: Nil))),
Nil
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ components:
examples:
- payload:
- 10
- payload:
- 42

0 comments on commit 62afd02

Please sign in to comment.