New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

openapi-enforcer

Package Overview
Dependencies
Maintainers
1
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-enforcer - npm Package Compare versions

Comparing version 0.10.2 to 0.10.3

bin-old/exception.js

1

bin/openapi.js

@@ -241,2 +241,3 @@ /**

* @param {boolean} [options.copy]
* @param {boolean} [options.defaults]
* @param {boolean} [options.ignoreMissingRequired]

@@ -243,0 +244,0 @@ * @param {boolean} [options.oneOf]

4

bin/v2/serialize.js

@@ -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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc