Closed psyren closed 4 years ago
Request are recognized as non-swagger, because basePath is not available in spec.
https://github.com/slanatech/swagger-stats/blob/master/lib/swsAPIStats.js swsAPIStats.prototype.initBasePath = function(swaggerSpec) { this.basePath = swaggerSpec.basePath ? swaggerSpec.basePath : '/';
swsAPIStats.prototype.initBasePath = function(swaggerSpec) {
this.basePath = swaggerSpec.basePath ? swaggerSpec.basePath : '/';
Easy workaround add this parameter to configuration.
Addressed in 0.95.16 - added option basePath to specify base path as needed when Openapi 3.0 spec is used.
basePath
Request are recognized as non-swagger, because basePath is not available in spec.
https://github.com/slanatech/swagger-stats/blob/master/lib/swsAPIStats.js
swsAPIStats.prototype.initBasePath = function(swaggerSpec) {
this.basePath = swaggerSpec.basePath ? swaggerSpec.basePath : '/';
Easy workaround add this parameter to configuration.