{"action":"created","issue":{"url":"https://api.github.com/repos/danielgtaylor/aglio/issues/305","repository_url":"https://api.github.com/repos/danielgtaylor/aglio","labels_url":"https://api.github.com/repos/danielgtaylor/aglio/issues/305/labels{/name}","comments_url":"https://api.github.com/repos/danielgtaylor/aglio/issues/305/comments","events_url":"https://api.github.com/repos/danielgtaylor/aglio/issues/305/events","html_url":"https://github.com/danielgtaylor/aglio/issues/305","id":186271225,"number":305,"title":"MSON Data structures are not working on v2.2.1","user":{"login":"wangyan-dlut","id":8743580,"avatar_url":"https://avatars.githubusercontent.com/u/8743580?v=3","gravatar_id":"","url":"https://api.github.com/users/wangyan-dlut","html_url":"https://github.com/wangyan-dlut","followers_url":"https://api.github.com/users/wangyan-dlut/followers","following_url":"https://api.github.com/users/wangyan-dlut/following{/other_user}","gists_url":"https://api.github.com/users/wangyan-dlut/gists{/gist_id}","starred_url":"https://api.github.com/users/wangyan-dlut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangyan-dlut/subscriptions","organizations_url":"https://api.github.com/users/wangyan-dlut/orgs","repos_url":"https://api.github.com/users/wangyan-dlut/repos","events_url":"https://api.github.com/users/wangyan-dlut/events{/privacy}","received_events_url":"https://api.github.com/users/wangyan-dlut/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-31T12:24:59Z","updated_at":"2016-12-19T03:33:48Z","closed_at":null,"body":"When I write mson data structures in my api.md like this:\r\n```\r\n## Data Structures\r\n\r\n### serversNum (object)\r\n\r\n- `ip`: `string` (string)\r\n- `num`: `0` (number) \r\n\r\n### onlineNum (object)\r\n\r\n- `totalNum`: `0` (number) \r\n- `serversNum` (array[serversNum])\r\n```\r\nthe json scheam it parsed is \r\n```\r\n{\r\n  \"$schema\": \"http://json-schema.org/draft-04/schema#\",\r\n  \"type\": \"object\",\r\n  \"properties\": {\r\n    \"totalNum\": {\r\n      \"type\": \"number\"\r\n    },\r\n    \"serversNum\": {\r\n      \"type\": \"array\"\r\n    }\r\n  }\r\n}\r\n```\r\nthe schema of `serversNum` is missing!\r\nSo How can I solve this problem??\r\n"},"comment":{"url":"https://api.github.com/repos/danielgtaylor/aglio/issues/comments/267874796","html_url":"https://github.com/danielgtaylor/aglio/issues/305#issuecomment-267874796","issue_url":"https://api.github.com/repos/danielgtaylor/aglio/issues/305","id":267874796,"user":{"login":"CameronLonsdale","id":1342756,"avatar_url":"https://avatars.githubusercontent.com/u/1342756?v=3","gravatar_id":"","url":"https://api.github.com/users/CameronLonsdale","html_url":"https://github.com/CameronLonsdale","followers_url":"https://api.github.com/users/CameronLonsdale/followers","following_url":"https://api.github.com/users/CameronLonsdale/following{/other_user}","gists_url":"https://api.github.com/users/CameronLonsdale/gists{/gist_id}","starred_url":"https://api.github.com/users/CameronLonsdale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CameronLonsdale/subscriptions","organizations_url":"https://api.github.com/users/CameronLonsdale/orgs","repos_url":"https://api.github.com/users/CameronLonsdale/repos","events_url":"https://api.github.com/users/CameronLonsdale/events{/privacy}","received_events_url":"https://api.github.com/users/CameronLonsdale/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T03:33:47Z","updated_at":"2016-12-19T03:33:47Z","body":"Hi @wangyan-dlut I encountered this problem recently. I'm not sure if this is the correct fix, but try using the type attribute `fixed-type`. This should fill out the schema for `serversNum`\r\n```\r\n- `serversNum` (array[serversNum], fixed-type)\r\n```"}}
{"actor":{"display_login":"CameronLonsdale"}}