Comparing version 1.0.3 to 1.0.4
@@ -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 => { |
{ | ||
"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); | ||
``` | ||
``` |
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
3068
3
56
23
+ Added@hapi/hoek@6.2.48.5.1(transitive)
+ Added@hapi/joi@14.5.0(transitive)
+ Added@hapi/marker@1.0.0(transitive)
+ Added@hapi/topo@3.1.6(transitive)
+ Addedenjoi@6.0.2(transitive)
- Removedenjoi@5.0.2(transitive)
- Removedhoek@6.1.3(transitive)
- Removedjoi@14.3.1(transitive)
- Removedtopo@3.0.3(transitive)
Updatedenjoi@^6.0.0