openapi-enforcer
Advanced tools
Comparing version 1.10.2 to 1.10.3
@@ -7,2 +7,10 @@ # Change Log | ||
## 1.10.3 | ||
### Changed | ||
- **Passed in options no longer modified.** | ||
When creating an Enforcer instance options can be provided. The options object was being altered. This has been fixed to now create a copy of the options prior to altering. | ||
## 1.10.2 | ||
@@ -9,0 +17,0 @@ |
{ | ||
"name": "openapi-enforcer", | ||
"version": "1.10.2", | ||
"version": "1.10.3", | ||
"description": "Library for validating, parsing, and formatting data against open api schemas.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -85,2 +85,3 @@ /** | ||
if (!options) options = {}; | ||
if (isStart) options = Object.assign({}, options) | ||
options.requestBodyAllowedMethods = options.hasOwnProperty('requestBodyAllowedMethods') | ||
@@ -87,0 +88,0 @@ ? Object.assign({}, requestBodyAllowedMethods, options.requestBodyAllowedMethods) |
Sorry, the diff of this file is too big to display
1457885
19815