echoapi-converter 0.0.23 → 0.0.24

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 (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5214,7 +5214,11 @@ class ThunderToApipost {
5214
5214
  data: `
5215
5215
  pm.test("Schema is valid", function () {
5216
5216
  ${str}
5217
- pm.expect(tv4.validate(data, ${test.value})).to.be.true;
5217
+ let tmpData = {};
5218
+ try {
5219
+ tmpData = JSON.parse(data);
5220
+ } catch (e) {}
5221
+ pm.expect(tv4.validate(tmpData, ${test.value})).to.be.true;
5218
5222
  });`,
5219
5223
  };
5220
5224
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echoapi-converter",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "echoapi to swagger",
5
5
  "main": "dist/index.js",
6
6
  "files": [