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

oas2joi

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oas2joi - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

1

lib/createAllOfSchema.js

@@ -16,2 +16,3 @@ const Enjoi = require('enjoi');

// Set required elements from $ref
/* istanbul ignore else */
if (docSchemas[refName].required) {

@@ -18,0 +19,0 @@ docSchemas[refName].required.forEach(requiredElement => {

14

package.json
{
"name": "oas2joi",
"version": "1.0.3",
"version": "1.0.4",
"description": "Create a Joi schema from an Open API Specification",
"main": "index.js",
"scripts": {
"test": "nyc mocha --recursive"
"test": "jest --coverage"
},
"pre-commit": "test",
"keywords": [

@@ -17,10 +18,9 @@ "openAPI",

"dependencies": {
"enjoi": "^5.0.0",
"enjoi": "^6.0.0",
"js-yaml": "^3.10.0"
},
"devDependencies": {
"chai": "^4.1.2",
"joi": "^14.3.0",
"mocha": "^5.0.0",
"nyc": "^13.1.0"
"@hapi/joi": "^15.0.3",
"jest": "^24.8.0",
"pre-commit": "^1.2.2"
},

@@ -27,0 +27,0 @@ "files": [

@@ -13,3 +13,3 @@ # oas2joi

const oas2joi = require('oas2joi');
const Joi = require('joi');
const Joi = require('@hapi/joi');

@@ -23,2 +23,2 @@ const schemas = oas2joi('./path/to/open-api.yml');

const { error } = Joi.validate(someObject, schemas.someObject);
```
```
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