openapi-enforcer
Advanced tools
Comparing version 0.10.2 to 0.10.3
@@ -241,2 +241,3 @@ /** | ||
* @param {boolean} [options.copy] | ||
* @param {boolean} [options.defaults] | ||
* @param {boolean} [options.ignoreMissingRequired] | ||
@@ -243,0 +244,0 @@ * @param {boolean} [options.oneOf] |
@@ -142,4 +142,6 @@ /** | ||
result[key] = serialize(exception.nest('/' + key), properties[key], value[key]); | ||
} else if (typeof additionalProperties === 'object') { | ||
result[key] = serialize(exception.nest('/' + key), additionalProperties, value[key]); | ||
} else if (additionalProperties) { | ||
result[key] = serialize(exception.nest('/' + key), additionalProperties, value[key]); | ||
result[key] = value[key]; | ||
} | ||
@@ -146,0 +148,0 @@ }); |
@@ -83,3 +83,3 @@ { | ||
"types": "index.d.ts", | ||
"version": "0.10.2" | ||
"version": "0.10.3" | ||
} |
@@ -331,12 +331,12 @@ | ||
`Enforcer.prototype.populate ( { schema, options, params, value } )` | ||
`Enforcer.prototype.populate ( schema, params, value, options )` | ||
This function takes one parameter (an `object`) with the following properties: | ||
| Property | Description | Type | | ||
| Parameters | Description | Type | | ||
| --------- | ----------- | ---- | | ||
| schema | The schema to build a value from. This property is required. | `object` | | ||
| params | A map of keys to values. These values are used to help build the final value | `object` | | ||
| value | An initial value to start with. Set to `undefined` if you do not want to provide a value. | Any | | ||
| options | The options to apply during the build phase. Any options specified here will overwrite defaults. | `object` | | ||
| value | An initial value to start with. | Any | | ||
@@ -343,0 +343,0 @@ Returns: The populated value. |
634012
68
12098
2