implement option to control whether models are displayed as valid JSON schema or the docs rendering (with descriptions) by default
This commit is contained in:
@@ -15,8 +15,12 @@ SwaggerUi.Views.SignatureView = Backbone.View.extend({
|
||||
|
||||
$(this.el).html(Handlebars.templates.signature(this.model));
|
||||
|
||||
this.switchToSnippet();
|
||||
|
||||
if (this.model.defaultRendering === 'model') {
|
||||
this.switchToDescription();
|
||||
} else {
|
||||
this.switchToSnippet();
|
||||
}
|
||||
|
||||
this.isParam = this.model.isParam;
|
||||
|
||||
if (this.isParam) {
|
||||
|
||||
Reference in New Issue
Block a user