nestjs-asyncapi icon indicating copy to clipboard operation
nestjs-asyncapi copied to clipboard

Any string as payload type causes error

Open Sergei8888 opened this issue 2 years ago • 1 comments

message: {
            name: 'Error message',
            payload: {
                type: 'string'
            }
        },

Error: Token "" does not exist. at dereference (/home/sergei888/GitLab/uniscope/src/backend_nest/node_modules/@asyncapi/parser/lib/parser.js:160:11) at parse (/home/sergei888/GitLab/uniscope/src/backend_nest/node_modules/@asyncapi/parser/lib/parser.js:95:5) at Generator.generateFromString (/home/sergei888/GitLab/uniscope/src/backend_nest/node_modules/@asyncapi/generator/lib/generator.js:265:22)

Sergei8888 avatar Jun 25 '22 00:06 Sergei8888

message: {
  name: 'test data',
  payload: {
    type: String,
  },
},

flamewow avatar Sep 29 '22 20:09 flamewow