{"action":"opened","issue":{"url":"https://api.github.com/repos/ueqt/parsets/issues/1","repository_url":"https://api.github.com/repos/ueqt/parsets","labels_url":"https://api.github.com/repos/ueqt/parsets/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ueqt/parsets/issues/1/comments","events_url":"https://api.github.com/repos/ueqt/parsets/issues/1/events","html_url":"https://github.com/ueqt/parsets/issues/1","id":391611716,"node_id":"MDU6SXNzdWUzOTE2MTE3MTY=","number":1,"title":"希望增加嵌套类型的支持","user":{"login":"e2tox","id":1542425,"node_id":"MDQ6VXNlcjE1NDI0MjU=","avatar_url":"https://avatars2.githubusercontent.com/u/1542425?v=4","gravatar_id":"","url":"https://api.github.com/users/e2tox","html_url":"https://github.com/e2tox","followers_url":"https://api.github.com/users/e2tox/followers","following_url":"https://api.github.com/users/e2tox/following{/other_user}","gists_url":"https://api.github.com/users/e2tox/gists{/gist_id}","starred_url":"https://api.github.com/users/e2tox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e2tox/subscriptions","organizations_url":"https://api.github.com/users/e2tox/orgs","repos_url":"https://api.github.com/users/e2tox/repos","events_url":"https://api.github.com/users/e2tox/events{/privacy}","received_events_url":"https://api.github.com/users/e2tox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-17T08:53:56Z","updated_at":"2018-12-17T08:53:56Z","closed_at":null,"author_association":"NONE","body":"输入：\r\n```typescript\r\nexport class ReqInfo {\r\n\r\n    // 返回码\r\n    error_code: number\r\n\r\n    // 返回码\r\n    error_message: string\r\n}\r\n\r\nexport class BrokerConfirmRequest {\r\n    \r\n    id: string\r\n\r\n    request1: ReqInfo\r\n\r\n}\r\n```\r\n\r\n输出\r\n```typescript\r\n[\r\n    {\r\n        \"name\": \"ReqInfo\",\r\n        \"fields\": [\r\n            {\r\n                \"name\": \"error_code\",\r\n                \"type\": \"number\",\r\n                \"dimension\": 0\r\n            },\r\n            {\r\n                \"name\": \"error_message\",\r\n                \"type\": \"string\",\r\n                \"dimension\": 0\r\n            },\r\n            {\r\n                \"name\": \"BrokerConfirmRequest\",\r\n                \"type\": \"id\",\r\n                \"dimension\": 0\r\n            },\r\n            {\r\n                \"name\": \"string\",\r\n                \"type\": \"request1\",\r\n                \"dimension\": 0\r\n            },\r\n            {\r\n                \"name\": \"ReqInfo\",\r\n                \"type\": \"\",\r\n                \"dimension\": 0\r\n            }\r\n        ]\r\n    }\r\n]\r\n```\r\n\r\n期望输出\r\n```typescript\r\n[\r\n    {\r\n        \"name\": \"ReqInfo\",\r\n        \"fields\": [\r\n            {\r\n                \"name\": \"error_code\",\r\n                \"type\": \"number\",\r\n                \"dimension\": 0  //这个代表什么意思？\r\n            },\r\n            {\r\n                \"name\": \"error_message\",\r\n                \"type\": \"string\",\r\n                \"dimension\": 0\r\n            }\r\n        ]\r\n    },\r\n    {\r\n        \"name\": \"BrokerConfirmRequest\",\r\n        \"fields\": [\r\n            {\r\n                \"name\": \"id\",\r\n                \"type\": \"string\",\r\n                \"dimension\": 0\r\n            },\r\n            {\r\n                \"name\": \"request1\",\r\n                \"type\": \"ReqInfo\",\r\n                \"dimension\": 0\r\n            }\r\n        ]\r\n    }\r\n]\r\n```"}}
{"actor":{"display_login":"e2tox"}}