[1949]: rendering fails when supportedSubmitMethods does not contains post or put
This commit is contained in:
@@ -154,6 +154,7 @@ SwaggerUi.Views.ParameterView = Backbone.View.extend({
|
||||
},
|
||||
|
||||
toggleSnippet: function (type) {
|
||||
type = type || '';
|
||||
if (type.indexOf('xml') > -1) {
|
||||
this.$('.snippet_xml').show();
|
||||
this.$('.snippet_json').hide();
|
||||
|
||||
Reference in New Issue
Block a user