Skip to content
#

data-generator

Here are 124 public repositories matching this topic...

simicn
simicn commented Jul 19, 2019

建议添加新功能:同步 Swagger 文档时直接从 Swagger 文档解析 Mock 数据模版定义。

如以下 Swagger 的 id 字段声明

"Account": {
    "type": "object",
    "properties": {
        "id": {
            "type": "integer",
            "x-mock-key": "1",
            "x-mock-value": "[1,2,3]"
        }
    }
}

解析后生成

"id|1": [1, 2, 3]

即解析文档中 properties 的 x-mock-key 和 x-mock-value 为

"id|{x-mock-key}": 
dplaton
dplaton commented Mar 20, 2019

Steps to reproduce:

  1. Create a new React app using create-react-app, i.e. npm create react-app casual-test
  2. Run yarn add casual
  3. Update the default App.js component like this
  4. Run yarn start

The browser opens automatically and shows an error page saying TypeError: exists is not a function, pointing to [thi

sgobotta
sgobotta commented Apr 4, 2020

Is your feature request related to a problem? Please describe.
Most of this kind of tools are available in websites. It would be nice to build a simple website to use the generator services

Describe the solution you'd like
Starts with a simple Vuejs SPA with a title and a text area that does nothing. Eventually we can add a json parser and features to interact with the generator api.

Improve this page

Add a description, image, and links to the data-generator topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the data-generator topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.