We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swagger-UI configuration options:
SwaggerUi({ dom_id: '#swaggerContainer', url: apidocUrl, spec, presets: [presets.apis], plugins: [this.customPlugins], onFailure(data) { console.log('Unable to Load SwaggerUI'); console.log(data); }, });
How do I catch and process any errors thrown on the server side. eg: 401, 404 etc.
Right now I am just monitoring the loading state with the following
customPlugins = () => ({ statePlugins: { spec: { wrapSelectors: { allowTryItOutFor: () => () => false, }, wrapActions: { updateLoadingStatus: ori => (...args) => { const [loadingStatus] = args; this.setState({ isLoading: loadingStatus === 'loading' }); this.setState({ loadingStatus }); return ori(...args); }, }, }, }, });
but this does not give me any additional info.
The onFailure callback is never getting called.
Thanks!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Q&A (please complete the following information)
Swagger-UI configuration options:
How can we help?
How do I catch and process any errors thrown on the server side.
eg: 401, 404 etc.
Right now I am just monitoring the loading state with the following
but this does not give me any additional info.
The onFailure callback is never getting called.
Thanks!
The text was updated successfully, but these errors were encountered: