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

openapi-sampler

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-sampler - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

9

dist/openapi-sampler.js

@@ -976,4 +976,9 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.OpenAPISampler = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){

(0, _utils.popSchemaStack)(seenSchemasStack, context);
return tryInferExample(schema) || traverse(schema.oneOf[0], options, spec, context);
(0, _utils.popSchemaStack)(seenSchemasStack, context); // Make sure to pass down readOnly and writeOnly annotations from the parent
var firstOneOf = Object.assign({
readOnly: schema.readOnly,
writeOnly: schema.writeOnly
}, schema.oneOf[0]);
return tryInferExample(schema) || traverse(firstOneOf, options, spec, context);
}

@@ -980,0 +985,0 @@

{
"name": "openapi-sampler",
"version": "1.1.0",
"version": "1.1.1",
"description": "Tool for generation samples based on OpenAPI payload/response schema",

@@ -5,0 +5,0 @@ "main": "dist/openapi-sampler.js",

@@ -108,3 +108,12 @@ import { _samplers } from './openapi-sampler';

popSchemaStack(seenSchemasStack, context);
return tryInferExample(schema) || traverse(schema.oneOf[0], options, spec, context);
// Make sure to pass down readOnly and writeOnly annotations from the parent
const firstOneOf = Object.assign({
readOnly: schema.readOnly,
writeOnly: schema.writeOnly
}, schema.oneOf[0]);
return (
tryInferExample(schema) || traverse(firstOneOf, options, spec, context)
);
}

@@ -111,0 +120,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