joi-to-swagger
Advanced tools
Comparing version 6.1.0 to 6.1.1
@@ -0,0 +0,0 @@ import { Schema } from 'joi'; |
@@ -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 |
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22345
360