Redocly/redoc

Redoc.init callback not working on error

Open

#2.233 aberto em 9 de dez. de 2022

Ver no GitHub
 (5 comments) (0 reactions) (0 assignees)TypeScript (2.272 forks)batch import
Type: Bughelp wanted

Métricas do repositório

Stars
 (21.877 stars)
Métricas de merge de PR
 (Mesclagem média 3h 40m) (11 fundiu PRs em 30d)

Description

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.

Guia do colaborador