Redocly/redoc

Redoc.init callback not working on error

Open

#2233 aperta il 9 dic 2022

Vedi su GitHub
 (5 commenti) (0 reazioni) (0 assegnatari)TypeScript (2272 fork)batch import
Type: Bughelp wanted

Metriche repository

Star
 (21.877 star)
Metriche merge PR
 (Merge medio 3h 40m) (11 PR mergiate in 30 g)

Descrizione

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.

Guida contributor