{"action":"created","issue":{"url":"https://api.github.com/repos/vieyahn2017/api-doc/issues/6","repository_url":"https://api.github.com/repos/vieyahn2017/api-doc","labels_url":"https://api.github.com/repos/vieyahn2017/api-doc/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/vieyahn2017/api-doc/issues/6/comments","events_url":"https://api.github.com/repos/vieyahn2017/api-doc/issues/6/events","html_url":"https://github.com/vieyahn2017/api-doc/issues/6","id":308068851,"number":6,"title":"todo: 参数支持层级, json格式的参数产生子项","user":{"login":"vieyahn2017","id":31752705,"avatar_url":"https://avatars1.githubusercontent.com/u/31752705?v=4","gravatar_id":"","url":"https://api.github.com/users/vieyahn2017","html_url":"https://github.com/vieyahn2017","followers_url":"https://api.github.com/users/vieyahn2017/followers","following_url":"https://api.github.com/users/vieyahn2017/following{/other_user}","gists_url":"https://api.github.com/users/vieyahn2017/gists{/gist_id}","starred_url":"https://api.github.com/users/vieyahn2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vieyahn2017/subscriptions","organizations_url":"https://api.github.com/users/vieyahn2017/orgs","repos_url":"https://api.github.com/users/vieyahn2017/repos","events_url":"https://api.github.com/users/vieyahn2017/events{/privacy}","received_events_url":"https://api.github.com/users/vieyahn2017/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-23T15:14:02Z","updated_at":"2018-03-23T15:25:26Z","closed_at":null,"author_association":"OWNER","body":"参数支持层级。json格式的参数产生子项"},"comment":{"url":"https://api.github.com/repos/vieyahn2017/api-doc/issues/comments/375702044","html_url":"https://github.com/vieyahn2017/api-doc/issues/6#issuecomment-375702044","issue_url":"https://api.github.com/repos/vieyahn2017/api-doc/issues/6","id":375702044,"user":{"login":"vieyahn2017","id":31752705,"avatar_url":"https://avatars1.githubusercontent.com/u/31752705?v=4","gravatar_id":"","url":"https://api.github.com/users/vieyahn2017","html_url":"https://github.com/vieyahn2017","followers_url":"https://api.github.com/users/vieyahn2017/followers","following_url":"https://api.github.com/users/vieyahn2017/following{/other_user}","gists_url":"https://api.github.com/users/vieyahn2017/gists{/gist_id}","starred_url":"https://api.github.com/users/vieyahn2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vieyahn2017/subscriptions","organizations_url":"https://api.github.com/users/vieyahn2017/orgs","repos_url":"https://api.github.com/users/vieyahn2017/repos","events_url":"https://api.github.com/users/vieyahn2017/events{/privacy}","received_events_url":"https://api.github.com/users/vieyahn2017/received_events","type":"User","site_admin":false},"created_at":"2018-03-23T15:25:26Z","updated_at":"2018-03-23T15:25:26Z","author_association":"OWNER","body":"前端的json参数的子项也写好了，但是样式不好处理。\r\n只好重新辅助实现。\r\n上面的数据demo，目前需要传成这样：\r\n\r\n```\r\n[\r\n　　{\r\n　　　　\"name\":\"id\",\r\n　　　　\"default\":\"1\",\r\n　　　　\"required\":\"false\",\r\n　　　　\"type_\":\"int\",\r\n　　　　\"description\":\"id.\",\r\n　　　　\"children\":[],\r\n　　　　\"valid\":true\r\n　　},\r\n　　{\r\n　　　　\"name\":\"name\",\r\n　　　　\"default\":\"\",\r\n　　　　\"required\":\"true\",\r\n　　　　\"type_\":\"string\",\r\n　　　　\"description\":\"the name\",\r\n　　　　\"children\":[],\r\n　　　　\"valid\":true\r\n　　},\r\n　　{\r\n　　　　\"name\":\"json_param\",\r\n　　　　\"default\":\"\",\r\n　　　　\"required\":\"true\",\r\n　　　　\"type_\":\"json\",\r\n　　　　\"description\":\"the name\",\r\n　　　　\"children\":[\r\n　　　　　　{\r\n　　　　　　　　\"name\":\"json_param_id\",\r\n　　　　　　　　\"default\":\"1\",\r\n　　　　　　　　\"required\":\"false\",\r\n　　　　　　　　\"type_\":\"int\",\r\n　　　　　　　　\"description\":\"the json param id.\",\r\n\t\t　　　　\"children\":[],\r\n\t\t　　　　\"valid\":true\r\n　　　　　　},\r\n　　　　　　{\r\n　　　　　　　　\"name\":\"json_param_name\",\r\n　　　　　　　　\"default\":\"\",\r\n　　　　　　　　\"required\":\"true\",\r\n　　　　　　　　\"type_\":\"string\",\r\n　　　　　　　　\"description\":\"the json param name.\",\r\n\t\t　　　　\"children\":[],\r\n\t\t　　　　\"valid\":true\r\n　　　　　　}\r\n　　　　]\r\n　　},\r\n　　{\r\n　　　　\"name\":\"json_param_id\",\r\n　　　　\"default\":\"1\",\r\n　　　　\"required\":\"false\",\r\n　　　　\"type_\":\"int\",\r\n　　　　\"description\":\"the json param id.\",\r\n　　　　\"children\":[],\r\n　　　　\"valid\":false\r\n　　},\r\n　　{\r\n　　　　\"name\":\"json_param_name\",\r\n　　　　\"default\":\"\",\r\n　　　　\"required\":\"true\",\r\n　　　　\"type_\":\"string\",\r\n　　　　\"description\":\"the json param name.\",\r\n　　　　\"children\":[],\r\n　　　　\"valid\":false\r\n　　}\r\n]\r\n```\r\n把json-param的子param也作为外层的param(\"valid\":false)"}}
{"actor":{"display_login":"vieyahn2017"}}