swagger-editor icon indicating copy to clipboard operation
swagger-editor copied to clipboard

fix(editor-preview-asyncapi): replace parser function to avoid errors in resolved definitions

Open glowcloud opened this issue 5 months ago • 1 comments

Fixes an issue where resolved definitions would fail during parsing. The error was narrowed down to come from one of the custom Spectral validation functions in @asyncapi/parser. This issue was fixed in @asyncapi/parser but the fix remains unpublished to npm. This issue was filed in https://github.com/asyncapi/parser-js/issues/1115.

Before: async-3-before

After:

  • resolved: async-3-after

  • unresolved with incorrect $ref: async-3-error

  • unresolved with correct $ref: async-3-no-error

glowcloud avatar Dec 10 '25 14:12 glowcloud

Thanks @andys8, LGTM

cc: @wing328

eriktim avatar May 11 '18 09:05 eriktim