swagger-editor
swagger-editor copied to clipboard
fix(editor-preview-asyncapi): replace parser function to avoid errors in resolved definitions
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:
After:
-
resolved:
-
unresolved with incorrect $ref:
-
unresolved with correct $ref:
Thanks @andys8, LGTM
cc: @wing328