joi-to-json 4.3.1 → 4.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -304,23 +304,7 @@ class JoiJsonSchemaParser {
304
304
  return
305
305
  }
306
306
 
307
- schema.properties[patternObj.regex] = {
308
- type: patternObj.rule.type,
309
- properties: {}
310
- }
311
- schema.properties[patternObj.regex].required = []
312
-
313
- const childKeys = patternObj.rule.keys || patternObj.rule.children
314
- schema.properties[patternObj.regex].additionalProperties = this._getUnknown(patternObj.rule)
315
-
316
- _.each(childKeys, (ruleObj, key) => {
317
- schema.properties[patternObj.regex].properties[key] = this.parse(ruleObj, definitions, level + 1)
318
-
319
- if (this._isRequired(ruleObj)) {
320
- schema.properties[patternObj.regex].required.push(key)
321
- }
322
- })
323
-
307
+ schema.properties[patternObj.regex] = this.parse(patternObj.rule, definitions, level + 1)
324
308
  schema.patternProperties = schema.patternProperties || {}
325
309
 
326
310
  let regexString = patternObj.regex
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joi-to-json",
3
- "version": "4.3.1",
3
+ "version": "4.3.2",
4
4
  "description": "joi to JSON / OpenAPI Schema Converter",
5
5
  "main": "index.js",
6
6
  "repository": {