Redocly/redoc

Redoc.init callback not working on error

开放

#2,233 创建于 2022年12月9日

 (5 条评论) (0 个反应) (0 位负责人)TypeScript (2,272 个派生)batch import
Type: Bughelp wanted

仓库指标

星标
 (21,877 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Describe the bug Callback function registered on Redoc.init is not called on error while rendering redoc.

Redoc.init(
  event.data,
  config,
  document.getElementById('redoc-container'),
  callback ---> doesn't seem to be called.
);

If something's wrong in my code, please tell me how to apply callback function on error.

Expected behavior Callback function should be called on error.

Minimal reproducible OpenAPI snippet(if possible)

Screenshots

Additional context Add any other context about the problem here.

贡献者指南