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
In swagger-ui.js the lines
else if (contentType === "application/json" || /\+json$/.test(contentType)) { code = $('<code />').text(JSON.stringify(JSON.parse(content), null, " ")); pre = $('<pre class="json" />').append(code); }
need to replaced by
} else if (contentType === "application/json" || /\+json$/.test(contentType)) { var json=""; try{ json=JSON.parse(content) }catch(e) { json={"string":content}; } code = $('<code />').text(JSON.stringify(json, null, " ")); pre = $('<pre class="json" />').append(code); }
The text was updated successfully, but these errors were encountered:
OK but this is only because your server is lying about returning JSON. If you are returning non-parsable JSON, then you'll get an error.
Sorry, something went wrong.
this has been added in develop_2.0
No branches or pull requests
In swagger-ui.js
the lines
need to replaced by
The text was updated successfully, but these errors were encountered: