joi-to-json 5.0.0 → 5.0.1

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.
@@ -602,7 +602,7 @@ class JoiJsonSchemaParser {
602
602
 
603
603
  let ifThenStyle = this._isIfThenElseSupported()
604
604
  const styleSetting = _.remove(joiSpec.metas, (meta) => {
605
- return typeof meta['if-style'] !== undefined
605
+ return typeof meta['if-style'] !== 'undefined'
606
606
  })
607
607
 
608
608
  if (ifThenStyle && styleSetting.length > 0 && styleSetting[0]['if-style'] === false) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joi-to-json",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "joi to JSON / OpenAPI Schema Converter",
5
5
  "main": "index.js",
6
6
  "repository": {