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

joi-to-swagger

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

joi-to-swagger - npm Package Compare versions

Comparing version 6.1.0 to 6.1.1

0

index.d.ts

@@ -0,0 +0,0 @@ import { Schema } from 'joi';

6

index.js

@@ -290,6 +290,10 @@ 'use strict';

if (pattern.rule) {
const { swagger } = parse(pattern.rule, combinedComponents);
const { swagger, components } = parse(pattern.rule, combinedComponents);
if (!swagger) { // swagger is falsy if joi.forbidden()
return;
}
merge(newComponentsByRef, components || {});
merge(combinedComponents, components || {});
additionalProperties = swagger;

@@ -296,0 +300,0 @@ }

@@ -0,0 +0,0 @@ joi-to-swagger

2

package.json
{
"name": "joi-to-swagger",
"version": "6.1.0",
"version": "6.1.1",
"description": "Conversion library for transforming joi schema objects into swagger / OpenApi OAS 3.0 schema definitions.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,3 +5,3 @@ joi-to-swagger

[![npm](https://img.shields.io/npm/v/joi-to-swagger.svg?logo=npm)](https://www.npmjs.com/package/joi-to-swagger)
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/Twipped/joi-to-swagger/Node.js%20Testing?label=tests)
[![Node.js Testing](https://github.com/Twipped/joi-to-swagger/actions/workflows/tests.yaml/badge.svg)](https://github.com/Twipped/joi-to-swagger/actions/workflows/tests.yaml)
[![Download Status](https://img.shields.io/npm/dm/joi-to-swagger.svg?style=flat-square)](https://www.npmjs.com/package/joi-to-swagger)

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