Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

swagger-schema

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swagger-schema - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

2

package.json
{
"name": "swagger-schema",
"version": "0.6.0",
"version": "0.7.0",
"description": "Swagger schema helpers",

@@ -5,0 +5,0 @@ "dependencies": {

@@ -145,4 +145,10 @@ /**

var hasDefault = parameter.hasOwnProperty('defaultValue');
if (hasDefault) {
property.default = parameter.defaultValue;
}
// path rules are implicitly required
if (parameter.required || paramType === 'path') {
if (!hasDefault && (parameter.required || paramType === 'path')) {
schema.required.push(parameter.name);

@@ -149,0 +155,0 @@ }

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