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

openapi-snippet

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-snippet - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

21

openapi-to-har.js

@@ -151,9 +151,13 @@ /**

if (typeof param.in !== 'undefined' && param.in.toLowerCase() === 'query') {
let value = 'SOME_' + (param.type || param.schema.type).toUpperCase() + '_VALUE'
if (typeof values[param.name] !== 'undefined') {
value = values[param.name] + '' /* adding a empty string to convert to string */
} else if (typeof param.default !== 'undefined') {
value = param.default + ''
} else if (typeof param.schema !== 'undefined' && typeof param.schema.example !== 'undefined') {
value = param.schema.example + ''
}
queryStrings.push({
name: param.name,
value: typeof values[param.name] === 'undefined'
? (typeof param.default === 'undefined'
? ('SOME_' + (param.type || param.schema.type).toUpperCase() + '_VALUE')
: param.default + '')
: (values[param.name] + '') /* adding a empty string to convert to string */
value: value
})

@@ -256,3 +260,8 @@ }

const authType = secDefinition.type.toLowerCase();
let authScheme = secDefinition.scheme.toLowerCase();
let authScheme = null;
if(authType !== 'apikey'){
let authScheme = secDefinition.scheme.toLowerCase();
}
switch (authType) {

@@ -259,0 +268,0 @@ case 'http':

{
"name": "openapi-snippet",
"version": "0.7.0",
"version": "0.7.1",
"description": "Generates code snippets from Open API (previously Swagger) documents.",

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

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