{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/docfx/issues/582","repository_url":"https://api.github.com/repos/dotnet/docfx","labels_url":"https://api.github.com/repos/dotnet/docfx/issues/582/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/docfx/issues/582/comments","events_url":"https://api.github.com/repos/dotnet/docfx/issues/582/events","html_url":"https://github.com/dotnet/docfx/pull/582","id":169866930,"number":582,"title":"use jobject to parse json, to judge whether json file is supported as swagger","user":{"login":"hellosnow","id":1836885,"avatar_url":"https://avatars.githubusercontent.com/u/1836885?v=3","gravatar_id":"","url":"https://api.github.com/users/hellosnow","html_url":"https://github.com/hellosnow","followers_url":"https://api.github.com/users/hellosnow/followers","following_url":"https://api.github.com/users/hellosnow/following{/other_user}","gists_url":"https://api.github.com/users/hellosnow/gists{/gist_id}","starred_url":"https://api.github.com/users/hellosnow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellosnow/subscriptions","organizations_url":"https://api.github.com/users/hellosnow/orgs","repos_url":"https://api.github.com/users/hellosnow/repos","events_url":"https://api.github.com/users/hellosnow/events{/privacy}","received_events_url":"https://api.github.com/users/hellosnow/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/docfx/labels/cla-required","name":"cla-required","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-08T08:17:04Z","updated_at":"2016-08-08T09:37:17Z","closed_at":"2016-08-08T09:37:17Z","pull_request":{"url":"https://api.github.com/repos/dotnet/docfx/pulls/582","html_url":"https://github.com/dotnet/docfx/pull/582","diff_url":"https://github.com/dotnet/docfx/pull/582.diff","patch_url":"https://github.com/dotnet/docfx/pull/582.patch"},"body":"JsonUtility.Deserialize< Dictionary < string, object > > will fail for such case, since 'required' has been added twice, use JObject.Parse instead to only care about top keys.\r\n```json\r\n\"A\": {\r\n      \"required\": [\r\n        \"B\",\r\n        \"C\"\r\n      ],\r\n      \"required\": [\r\n        \"B\"\r\n      ],\r\n      \"description\": \"Deployment properties.\"\r\n    },\r\n```\r\n@vwxyzh @superyyrrzz @qinezh @chenkennt @ansyral "},"comment":{"url":"https://api.github.com/repos/dotnet/docfx/issues/comments/238187955","html_url":"https://github.com/dotnet/docfx/pull/582#issuecomment-238187955","issue_url":"https://api.github.com/repos/dotnet/docfx/issues/582","id":238187955,"user":{"login":"hellosnow","id":1836885,"avatar_url":"https://avatars.githubusercontent.com/u/1836885?v=3","gravatar_id":"","url":"https://api.github.com/users/hellosnow","html_url":"https://github.com/hellosnow","followers_url":"https://api.github.com/users/hellosnow/followers","following_url":"https://api.github.com/users/hellosnow/following{/other_user}","gists_url":"https://api.github.com/users/hellosnow/gists{/gist_id}","starred_url":"https://api.github.com/users/hellosnow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellosnow/subscriptions","organizations_url":"https://api.github.com/users/hellosnow/orgs","repos_url":"https://api.github.com/users/hellosnow/repos","events_url":"https://api.github.com/users/hellosnow/events{/privacy}","received_events_url":"https://api.github.com/users/hellosnow/received_events","type":"User","site_admin":false},"created_at":"2016-08-08T09:37:17Z","updated_at":"2016-08-08T09:37:17Z","body":"Need to discuss with partner, whether the following syntax is wanted:\r\n```json\r\n\"A\": {\r\n      \"required\": [\r\n        \"B\",\r\n        \"C\"\r\n      ],\r\n      \"required\": [\r\n        \"B\"\r\n      ],\r\n      \"description\": \"Deployment properties.\"\r\n    },\r\n```"}}
{"actor":{"display_login":"hellosnow"}}