fixed body param

This commit is contained in:
Tony Tam
2015-01-31 21:09:03 -08:00
parent ef14c42d4c
commit 6d24e5f429
3 changed files with 625 additions and 625 deletions

1238
dist/swagger-ui.js vendored

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -21,7 +21,7 @@ class ParameterView extends Backbone.View
@model.type = type
@model.paramType = @model.in || @model.paramType
@model.isBody = true if @model.paramType == 'body'
@model.isBody = true if @model.paramType == 'body' or @model.in == 'body'
@model.isFile = true if type and type.toLowerCase() == 'file'
@model.default = (@model.default || @model.defaultValue)