joi-to-json 5.0.2 → 5.0.3

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.
@@ -42,6 +42,7 @@ class JoiOpenApiSchemaParser extends JoiJsonSchemaParser {
42
42
 
43
43
  if (!_.isEmpty(fieldSchema.examples)) {
44
44
  fieldSchema.example = fieldSchema.examples[0]
45
+ delete fieldSchema.examples
45
46
  }
46
47
  }
47
48
 
@@ -131,4 +132,4 @@ function isKnownKey(key) {
131
132
  return knownKeys.has(key) || isKnownMetaKey(key)
132
133
  }
133
134
 
134
- module.exports = JoiOpenApiSchemaParser
135
+ module.exports = JoiOpenApiSchemaParser
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joi-to-json",
3
- "version": "5.0.2",
3
+ "version": "5.0.3",
4
4
  "description": "joi to JSON / OpenAPI Schema Converter",
5
5
  "main": "index.js",
6
6
  "repository": {