MCPcopy
hub / github.com/YMFE/yapi / transformJsonToSchema

Function transformJsonToSchema

exts/yapi-plugin-import-har/client.js:6–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4import { json_parse, unbase64 } from '../../common/utils.js';
5
6const transformJsonToSchema = json => {
7 json = json || {};
8 let jsonData = json_parse(json);
9
10 jsonData = GenerateSchema(jsonData);
11
12 let schemaData = JSON.stringify(jsonData);
13
14 return schemaData;
15};
16
17function postman(importDataModule) {
18 function parseUrl(url) {

Callers 1

importHarFunction · 0.70

Calls 1

json_parseFunction · 0.90

Tested by

no test coverage detected