swagger-fluent
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -5,2 +5,9 @@ # Changelog | ||
### [5.0.3](https://github.com/silasbw/swagger-fluent/compare/5.0.2...5.0.3) (2020-04-30) | ||
### Bug Fixes | ||
* only try to expose supported methods ([#72](https://github.com/silasbw/swagger-fluent/issues/72)) ([827db20](https://github.com/silasbw/swagger-fluent/commit/827db20)) | ||
### [5.0.2](https://github.com/silasbw/swagger-fluent/compare/5.0.1...5.0.2) (2020-04-29) | ||
@@ -7,0 +14,0 @@ |
@@ -223,3 +223,6 @@ /* eslint-disable no-sync */ | ||
// | ||
Object.keys(endpoint.pathItem) | ||
const supportedMethods = ['get', 'put', 'post', 'delete', 'patch'] | ||
supportedMethods | ||
.filter(method => endpoint.pathItem[method]) | ||
.forEach(method => { | ||
@@ -226,0 +229,0 @@ component[method] = component['_' + method] |
{ | ||
"name": "swagger-fluent", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "A fluent client for OpenAPI and Swagger", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25615
437