According to the AsyncAPI 2.0.0 spec, examples should be an array of records.
Current swagger-codegen-ts implementation expects a single record.
Sample spec:
asyncapi: 2.0.0
defaultContentType: application/json
info:
title: swagger-codegen-ts - messages schema
version: 1.0.0
channels:
/demo:
publish:
message:
summary: Provides a way to test the communication channel between the client and the server
payload:
type: object
properties:
type:
const: ping
required:
- type
examples:
- payload: |
According to the AsyncAPI 2.0.0 spec,
examples
should be an array of records. Currentswagger-codegen-ts
implementation expects a single record.Sample spec: