json-machete 0.4.3 → 0.5.0-alpha-1b4b50129.0

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.
Files changed (3) hide show
  1. package/index.js +3 -0
  2. package/index.mjs +3 -0
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -611,6 +611,9 @@ async function healJSONSchema(schema) {
611
611
  pathBasedName += '_';
612
612
  }
613
613
  }
614
+ if (subSchema.description != null) {
615
+ subSchema.description = subSchema.description.trim();
616
+ }
614
617
  }
615
618
  return subSchema;
616
619
  }, {
package/index.mjs CHANGED
@@ -606,6 +606,9 @@ async function healJSONSchema(schema) {
606
606
  pathBasedName += '_';
607
607
  }
608
608
  }
609
+ if (subSchema.description != null) {
610
+ subSchema.description = subSchema.description.trim();
611
+ }
609
612
  }
610
613
  return subSchema;
611
614
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json-machete",
3
- "version": "0.4.3",
3
+ "version": "0.5.0-alpha-1b4b50129.0",
4
4
  "sideEffects": false,
5
5
  "dependencies": {
6
6
  "@graphql-mesh/utils": "0.27.0",