Comparing version 1.0.0 to 1.0.1
@@ -30,5 +30,7 @@ const fs = require('fs'); | ||
docSchemas[schemaName].required.forEach((requiredProperty) => { | ||
docSchemas[refName].required.push(requiredProperty); | ||
}); | ||
if (docSchemas[schemaName].required) { | ||
docSchemas[schemaName].required.forEach((requiredProperty) => { | ||
docSchemas[refName].required.push(requiredProperty); | ||
}); | ||
} | ||
@@ -35,0 +37,0 @@ Object.assign(docSchemas[refName].properties, docSchemas[schemaName].properties) |
{ | ||
"name": "oas2joi", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Create a Joi schema from an Open API Specification", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
5645
79