echoapi-converter 0.0.18 → 0.0.19
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.
- package/dist/index.js +13 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5206,6 +5206,19 @@ class ThunderToApipost {
|
|
|
5206
5206
|
});`,
|
|
5207
5207
|
};
|
|
5208
5208
|
}
|
|
5209
|
+
else if (action === "schema") {
|
|
5210
|
+
return {
|
|
5211
|
+
type: "customScript",
|
|
5212
|
+
id: ATools.snowflakeId(),
|
|
5213
|
+
name: "Script",
|
|
5214
|
+
enabled: 1,
|
|
5215
|
+
data: `
|
|
5216
|
+
pm.test("Schema is valid", function () {
|
|
5217
|
+
${str}
|
|
5218
|
+
pm.expect(tv4.validate(data, ${test.value})).to.be.true;
|
|
5219
|
+
});`,
|
|
5220
|
+
};
|
|
5221
|
+
}
|
|
5209
5222
|
}
|
|
5210
5223
|
});
|
|
5211
5224
|
Object.defineProperty(this, "buildFolderApiTree", {
|