django-rest-swagger icon indicating copy to clipboard operation
django-rest-swagger copied to clipboard

Fix of a bug that happens when the user defines prototype functions for Array

Open andreyyudin opened this issue 6 years ago • 0 comments

Fix of an issue of having prototype Array function definitions. In this case the original code would go through all those functions and treat them as parameters, rather than working only on the actual content of an array. For example, having Array.prototype.last = function(){...

defined would result in one of the elements of sharedParameters to represent that function, which in turn would lead to a problem on line 329 since for such a parameter, param.schema would be undefined. Also, a couple of small cosmetic adjustments of the code.

andreyyudin avatar Jan 10 '18 16:01 andreyyudin