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.9.2 to 0.9.3

2

package.json
{
"name": "swagger-schema",
"version": "0.9.2",
"version": "0.9.3",
"description": "Swagger schema helpers",

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

@@ -52,3 +52,6 @@ /**

beforeObject: function(v) {
if (options.removeFormats && v.format && v.type !== 'string') {
if (options.removeFormats &&
typeof v.format === 'string' &&
typeof v.type === 'string' &&
v.type !== 'string') {
delete v.format;

@@ -55,0 +58,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