oauth2: all paths does not require a scope
This commit is contained in:
@@ -21,9 +21,7 @@ SwaggerUi.Models.Oauth2Model = Backbone.Model.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
validate: function () {
|
validate: function () {
|
||||||
var valid = _.findIndex(this.get('scopes'), function (o) {
|
var valid = true;
|
||||||
return o.checked === true;
|
|
||||||
}) > -1;
|
|
||||||
|
|
||||||
this.set('valid', valid);
|
this.set('valid', valid);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user