소스 검색

Merge pull request #2521 from swagger-api/issue-2483

fixed scopes issue
bubble
Tony Tam 7 년 전
committed by GitHub
부모
커밋
30f0848ac2
4개의 변경된 파일69개의 추가작업 그리고 28개의 파일을 삭제
  1. +47
    -19
      dist/swagger-ui.js
  2. +8
    -8
      dist/swagger-ui.min.js
  3. +1
    -1
      package.json
  4. +13
    -0
      src/main/javascript/view/Oauth2Model.js

+ 47
- 19
dist/swagger-ui.js
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 8
- 8
dist/swagger-ui.min.js
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 1
- 1
package.json 파일 보기

@@ -61,6 +61,6 @@
"phantomjs": "1.9.19",
"selenium-webdriver": "^2.45.0",
"sinon-chai": "2.8.0",
"swagger-client": "2.1.23"
"swagger-client": "2.1.24"
}
}

+ 13
- 0
src/main/javascript/view/Oauth2Model.js 파일 보기

@@ -6,6 +6,19 @@ SwaggerUi.Models.Oauth2Model = Backbone.Model.extend({
},

initialize: function () {
if(this.attributes && this.attributes.scopes) {
var attributes = _.cloneDeep(this.attributes);
var i, scopes = [];
for(i in attributes.scopes) {
var scope = attributes.scopes[i];
if(typeof scope.description === 'string') {
scopes[scope] = attributes.scopes[i];
scopes.push(attributes.scopes[i]);
}
}
attributes.scopes = scopes;
this.attributes = attributes;
}
this.on('change', this.validate);
},



불러오는 중...
취소
저장