/** * @desc * * @使用场景 * * @Date 2019/6/5 **/ /** 示例数据: { "type": "object", "properties": { "user": { "type": "object", "properties": { "id": { "$ref": "#/definitions/positiveInt" }, "name": { "type": "string", "faker": "name.findName" }, "birthday": { "type": "string", "chance": { "birthday": { "string": true } } }, "email": { "type": "string", "format": "email", "faker": "internet.email" } }, "required": [ "id", "name", "birthday", "email" ] } }, "required": [ "user" ], "definitions": { "positiveInt": { "type": "integer", "minimum": 0, "minimumExclusive": true }s } } * @param jsonSchema * @param {{}} definitions */ export declare function genrateFakeData(jsonSchema: any, definitions?: { [name: string]: any; }): Promise; /** * 消除循环依赖. * * * */ export declare function cancelCircularRef(jsonSchema: any, definitions?: {}, superRefs?: any[], pathRefs?: {}): void;