{"action":"created","comment":{"url":"https://api.github.com/repos/apiaryio/snowcrash/pulls/comments/23450552","id":23450552,"diff_hunk":"@@ -0,0 +1,634 @@\n+//\n+//  SerializeAST.cc\n+//  snowcrash\n+//\n+//  Created by Pavan Kumar Sunkara on 18/01/15.\n+//  Copyright (c) 2015 Apiary Inc. All rights reserved.\n+//\n+\n+#include \"SerializeAST.h\"\n+\n+using namespace snowcrash;\n+\n+sos::Object wrapValue(const mson::Value& value)\n+{\n+    sos::Object valueObject;\n+\n+    // Literal\n+    valueObject.set(SerializeKey::Literal.c_str(), sos::String(value.literal));\n+\n+    // Variable\n+    valueObject.set(SerializeKey::Variable.c_str(), sos::Boolean(value.variable));\n+\n+    return valueObject;\n+}\n+\n+sos::Object wrapSymbol(const mson::Symbol& symbol)\n+{\n+    sos::Object symbolObject;\n+\n+    // Literal\n+    symbolObject.set(SerializeKey::Literal.c_str(), sos::String(symbol.literal));\n+\n+    // Variable\n+    symbolObject.set(SerializeKey::Variable.c_str(), sos::Boolean(symbol.variable));\n+\n+    return symbolObject;\n+}\n+\n+sos::Base wrapTypeName(const mson::TypeName& typeName)\n+{\n+    if (typeName.base != mson::UndefinedTypeName) {\n+\n+        std::string baseTypeName = \"\";\n+\n+        switch (typeName.base) {\n+\n+            case mson::BooleanTypeName:\n+                baseTypeName = \"boolean\";\n+                break;\n+\n+            case mson::StringTypeName:\n+                baseTypeName = \"string\";\n+                break;\n+\n+            case mson::NumberTypeName:\n+                baseTypeName = \"number\";\n+                break;\n+\n+            case mson::ArrayTypeName:\n+                baseTypeName = \"array\";\n+                break;\n+\n+            case mson::EnumTypeName:\n+                baseTypeName = \"enum\";\n+                break;\n+\n+            case mson::ObjectTypeName:\n+                baseTypeName = \"object\";\n+                break;\n+\n+            default:\n+                break;\n+        }\n+\n+        return sos::String(baseTypeName);\n+    }\n+\n+    return wrapSymbol(typeName.symbol);\n+}\n+\n+sos::Object wrapTypeSpecification(const mson::TypeSpecification& typeSpecification)\n+{\n+    sos::Object typeSpecificationObject;\n+\n+    // Name\n+    typeSpecificationObject.set(SerializeKey::Name.c_str(), wrapTypeName(typeSpecification.name));\n+\n+    // Nested Types\n+    sos::Array nestedTypes;\n+\n+    for (mson::TypeNames::const_iterator it = typeSpecification.nestedTypes.begin();\n+         it != typeSpecification.nestedTypes.end();\n+         ++it) {\n+\n+        nestedTypes.push(wrapTypeName(*it));\n+    }\n+\n+    typeSpecificationObject.set(SerializeKey::NestedTypes.c_str(), nestedTypes);\n+\n+    return typeSpecificationObject;\n+}\n+\n+sos::Array wrapTypeAttributes(const mson::TypeAttributes& typeAttributes)\n+{\n+    sos::Array typeAttributesArray;\n+\n+    if (typeAttributes & mson::RequiredTypeAttribute) {\n+        typeAttributesArray.push(sos::String(\"required\"));\n+    }\n+    else if (typeAttributes & mson::OptionalTypeAttribute) {\n+        typeAttributesArray.push(sos::String(\"optional\"));\n+    }\n+    else if (typeAttributes & mson::DefaultTypeAttribute) {\n+        typeAttributesArray.push(sos::String(\"default\"));\n+    }\n+    else if (typeAttributes & mson::SampleTypeAttribute) {\n+        typeAttributesArray.push(sos::String(\"sample\"));\n+    }\n+    else if (typeAttributes & mson::FixedTypeAttribute) {\n+        typeAttributesArray.push(sos::String(\"fixed\"));\n+    }\n+\n+    return typeAttributesArray;\n+}\n+\n+sos::Object wrapTypeDefinition(const mson::TypeDefinition& typeDefinition)\n+{\n+    sos::Object typeDefinitionObject;\n+\n+    // Type Specification\n+    typeDefinitionObject.set(SerializeKey::TypeSpecification.c_str(), wrapTypeSpecification(typeDefinition.typeSpecification));\n+\n+    // Type Attributes\n+    typeDefinitionObject.set(SerializeKey::Attributes.c_str(), wrapTypeAttributes(typeDefinition.attributes));\n+\n+    return typeDefinitionObject;\n+}\n+\n+sos::Object wrapValueDefinition(const mson::ValueDefinition& valueDefinition)\n+{\n+    sos::Object valueDefinitionObject;\n+\n+    // Values\n+    sos::Array values;\n+\n+    for (mson::Values::const_iterator it = valueDefinition.values.begin();\n+         it != valueDefinition.values.end();\n+         ++it) {\n+\n+        values.push(wrapValue(*it));\n+    }\n+\n+    valueDefinitionObject.set(SerializeKey::Values.c_str(), values);\n+\n+    // Type Definition\n+    valueDefinitionObject.set(SerializeKey::TypeDefinition.c_str(), wrapTypeDefinition(valueDefinition.typeDefinition));\n+\n+    return valueDefinitionObject;\n+}\n+\n+sos::Object wrapPropertyName(const mson::PropertyName& propertyName)\n+{\n+    sos::Object propertyNameObject;\n+\n+    if (!propertyName.literal.empty()) {\n+        propertyNameObject.set(SerializeKey::Literal.c_str(), sos::String(propertyName.literal));\n+    }\n+    else if (!propertyName.variable.empty()) {\n+        propertyNameObject.set(SerializeKey::Variable.c_str(), wrapValueDefinition(propertyName.variable));\n+    }\n+\n+    return propertyNameObject;\n+}\n+\n+// Forward declarations\n+sos::Array wrapTypeSections(const mson::TypeSections& typeSections);\n+sos::Array wrapElements(const mson::Elements& elements);\n+\n+sos::Object wrapPropertyMember(const mson::PropertyMember& propertyMember)\n+{\n+    sos::Object propertyMemberObject;\n+\n+    // Name\n+    propertyMemberObject.set(SerializeKey::Name.c_str(), wrapPropertyName(propertyMember.name));\n+\n+    // Description\n+    propertyMemberObject.set(SerializeKey::Description.c_str(), sos::String(propertyMember.description.c_str()));\n+\n+    // Value Definition\n+    propertyMemberObject.set(SerializeKey::ValueDefinition.c_str(), wrapValueDefinition(propertyMember.valueDefinition));\n+\n+    // Type Sections\n+    propertyMemberObject.set(SerializeKey::Sections.c_str(), wrapTypeSections(propertyMember.sections));\n+\n+    return propertyMemberObject;\n+}\n+\n+sos::Object wrapValueMember(const mson::ValueMember& valueMember)\n+{\n+    sos::Object valueMemberObject;\n+\n+    // Description\n+    valueMemberObject.set(SerializeKey::Description.c_str(), sos::String(valueMember.description.c_str()));\n+\n+    // Value Definition\n+    valueMemberObject.set(SerializeKey::ValueDefinition.c_str(), wrapValueDefinition(valueMember.valueDefinition));\n+\n+    // Type Sections\n+    valueMemberObject.set(SerializeKey::Sections.c_str(), wrapTypeSections(valueMember.sections));\n+\n+    return valueMemberObject;\n+}\n+\n+sos::Object wrapMixin(const mson::Mixin& mixin)\n+{\n+    return wrapTypeDefinition(mixin);\n+}\n+\n+sos::Array wrapOneOf(const mson::OneOf& oneOf)\n+{\n+    return wrapElements(oneOf);\n+}\n+\n+sos::Object wrapElement(const mson::Element& element)\n+{\n+    sos::Object elementObject;\n+    std::string klass = \"\";\n+\n+    switch (element.klass) {\n+\n+        case mson::Element::PropertyClass:\n+        {\n+            klass = \"property\";\n+            elementObject.set(SerializeKey::Content.c_str(), wrapPropertyMember(element.content.property));\n+            break;\n+        }\n+\n+        case mson::Element::ValueClass:\n+        {\n+            klass = \"value\";\n+            elementObject.set(SerializeKey::Content.c_str(), wrapValueMember(element.content.value));\n+            break;\n+        }\n+\n+        case mson::Element::MixinClass:\n+        {\n+            klass = \"mixin\";\n+            elementObject.set(SerializeKey::Content.c_str(), wrapMixin(element.content.mixin));\n+            break;\n+        }\n+\n+        case mson::Element::OneOfClass:\n+        {\n+            klass = \"oneOf\";\n+            elementObject.set(SerializeKey::Content.c_str(), wrapOneOf(element.content.oneOf()));\n+            break;\n+        }\n+\n+        case mson::Element::GroupClass:\n+        {\n+            klass = \"group\";\n+            elementObject.set(SerializeKey::Content.c_str(), wrapElements(element.content.elements()));\n+            break;\n+        }\n+\n+        default:\n+            break;\n+    }\n+\n+    elementObject.set(SerializeKey::Class.c_str(), sos::String(klass));\n+\n+    return elementObject;\n+}\n+\n+sos::Array wrapElements(const mson::Elements& elements)\n+{\n+    sos::Array elementsArray;\n+\n+    for (mson::Elements::const_iterator it = elements.begin(); it != elements.end(); ++it) {\n+        elementsArray.push(wrapElement(*it));\n+    }\n+\n+    return elementsArray;\n+}\n+\n+sos::Array wrapTypeSections(const mson::TypeSections& sections)\n+{\n+    sos::Array sectionsArray;\n+\n+    for (mson::TypeSections::const_iterator it = sections.begin(); it != sections.end(); ++it) {\n+\n+        sos::Object section;\n+\n+        // Class\n+        std::string klass = \"\";","path":"src/SerializeAST.cc","position":295,"original_position":295,"commit_id":"3176ed84b69805842ed933f130566a57c5839117","original_commit_id":"3176ed84b69805842ed933f130566a57c5839117","user":{"login":"zdne","id":613617,"avatar_url":"https://avatars.githubusercontent.com/u/613617?v=3","gravatar_id":"","url":"https://api.github.com/users/zdne","html_url":"https://github.com/zdne","followers_url":"https://api.github.com/users/zdne/followers","following_url":"https://api.github.com/users/zdne/following{/other_user}","gists_url":"https://api.github.com/users/zdne/gists{/gist_id}","starred_url":"https://api.github.com/users/zdne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdne/subscriptions","organizations_url":"https://api.github.com/users/zdne/orgs","repos_url":"https://api.github.com/users/zdne/repos","events_url":"https://api.github.com/users/zdne/events{/privacy}","received_events_url":"https://api.github.com/users/zdne/received_events","type":"User","site_admin":false},"body":"ditto","created_at":"2015-01-23T14:00:22Z","updated_at":"2015-01-23T14:00:22Z","html_url":"https://github.com/apiaryio/snowcrash/pull/272#discussion_r23450552","pull_request_url":"https://api.github.com/repos/apiaryio/snowcrash/pulls/272","_links":{"self":{"href":"https://api.github.com/repos/apiaryio/snowcrash/pulls/comments/23450552"},"html":{"href":"https://github.com/apiaryio/snowcrash/pull/272#discussion_r23450552"},"pull_request":{"href":"https://api.github.com/repos/apiaryio/snowcrash/pulls/272"}}},"pull_request":{"url":"https://api.github.com/repos/apiaryio/snowcrash/pulls/272","id":27683279,"html_url":"https://github.com/apiaryio/snowcrash/pull/272","diff_url":"https://github.com/apiaryio/snowcrash/pull/272.diff","patch_url":"https://github.com/apiaryio/snowcrash/pull/272.patch","issue_url":"https://api.github.com/repos/apiaryio/snowcrash/issues/272","number":272,"state":"open","locked":false,"title":"Use libsos for serialization","user":{"login":"pksunkara","id":174703,"avatar_url":"https://avatars.githubusercontent.com/u/174703?v=3","gravatar_id":"","url":"https://api.github.com/users/pksunkara","html_url":"https://github.com/pksunkara","followers_url":"https://api.github.com/users/pksunkara/followers","following_url":"https://api.github.com/users/pksunkara/following{/other_user}","gists_url":"https://api.github.com/users/pksunkara/gists{/gist_id}","starred_url":"https://api.github.com/users/pksunkara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pksunkara/subscriptions","organizations_url":"https://api.github.com/users/pksunkara/orgs","repos_url":"https://api.github.com/users/pksunkara/repos","events_url":"https://api.github.com/users/pksunkara/events{/privacy}","received_events_url":"https://api.github.com/users/pksunkara/received_events","type":"User","site_admin":false},"body":"This PR contains the following:\r\n\r\n1. Use [sos](https://github.com/apiaryio/sos) for serialization.\r\n2. MSON Serialization\r\n3. MSON Sourcemap Serialization\r\n\r\nWe don't need separate `SerializeJSON.cc` and `SerializeYAML.cc` anymore. Serialization objects will be built in `SerializeAST.cc` and `SerializeSourcemap.cc` and then will be serialized into a format by the respective serializers `sosJSON.h` and `sosYAML.h`.\r\n\r\nNeed to review apiaryio/sos#1 before this.","created_at":"2015-01-20T14:57:18Z","updated_at":"2015-01-23T14:00:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"12d05256848cdfaa063838aeb12d7057f93ec648","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apiaryio/snowcrash/pulls/272/commits","review_comments_url":"https://api.github.com/repos/apiaryio/snowcrash/pulls/272/comments","review_comment_url":"https://api.github.com/repos/apiaryio/snowcrash/pulls/comments/{number}","comments_url":"https://api.github.com/repos/apiaryio/snowcrash/issues/272/comments","statuses_url":"https://api.github.com/repos/apiaryio/snowcrash/statuses/3176ed84b69805842ed933f130566a57c5839117","head":{"label":"apiaryio:pksunkara/serialization","ref":"pksunkara/serialization","sha":"3176ed84b69805842ed933f130566a57c5839117","user":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"repo":{"id":9173280,"name":"snowcrash","full_name":"apiaryio/snowcrash","owner":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apiaryio/snowcrash","description":"API Blueprint Parser","fork":false,"url":"https://api.github.com/repos/apiaryio/snowcrash","forks_url":"https://api.github.com/repos/apiaryio/snowcrash/forks","keys_url":"https://api.github.com/repos/apiaryio/snowcrash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apiaryio/snowcrash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apiaryio/snowcrash/teams","hooks_url":"https://api.github.com/repos/apiaryio/snowcrash/hooks","issue_events_url":"https://api.github.com/repos/apiaryio/snowcrash/issues/events{/number}","events_url":"https://api.github.com/repos/apiaryio/snowcrash/events","assignees_url":"https://api.github.com/repos/apiaryio/snowcrash/assignees{/user}","branches_url":"https://api.github.com/repos/apiaryio/snowcrash/branches{/branch}","tags_url":"https://api.github.com/repos/apiaryio/snowcrash/tags","blobs_url":"https://api.github.com/repos/apiaryio/snowcrash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apiaryio/snowcrash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apiaryio/snowcrash/git/refs{/sha}","trees_url":"https://api.github.com/repos/apiaryio/snowcrash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apiaryio/snowcrash/statuses/{sha}","languages_url":"https://api.github.com/repos/apiaryio/snowcrash/languages","stargazers_url":"https://api.github.com/repos/apiaryio/snowcrash/stargazers","contributors_url":"https://api.github.com/repos/apiaryio/snowcrash/contributors","subscribers_url":"https://api.github.com/repos/apiaryio/snowcrash/subscribers","subscription_url":"https://api.github.com/repos/apiaryio/snowcrash/subscription","commits_url":"https://api.github.com/repos/apiaryio/snowcrash/commits{/sha}","git_commits_url":"https://api.github.com/repos/apiaryio/snowcrash/git/commits{/sha}","comments_url":"https://api.github.com/repos/apiaryio/snowcrash/comments{/number}","issue_comment_url":"https://api.github.com/repos/apiaryio/snowcrash/issues/comments/{number}","contents_url":"https://api.github.com/repos/apiaryio/snowcrash/contents/{+path}","compare_url":"https://api.github.com/repos/apiaryio/snowcrash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apiaryio/snowcrash/merges","archive_url":"https://api.github.com/repos/apiaryio/snowcrash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apiaryio/snowcrash/downloads","issues_url":"https://api.github.com/repos/apiaryio/snowcrash/issues{/number}","pulls_url":"https://api.github.com/repos/apiaryio/snowcrash/pulls{/number}","milestones_url":"https://api.github.com/repos/apiaryio/snowcrash/milestones{/number}","notifications_url":"https://api.github.com/repos/apiaryio/snowcrash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apiaryio/snowcrash/labels{/name}","releases_url":"https://api.github.com/repos/apiaryio/snowcrash/releases{/id}","created_at":"2013-04-02T15:23:04Z","updated_at":"2015-01-23T09:40:41Z","pushed_at":"2015-01-22T15:40:50Z","git_url":"git://github.com/apiaryio/snowcrash.git","ssh_url":"git@github.com:apiaryio/snowcrash.git","clone_url":"https://github.com/apiaryio/snowcrash.git","svn_url":"https://github.com/apiaryio/snowcrash","homepage":null,"size":6019,"stargazers_count":220,"watchers_count":220,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":24,"forks":36,"open_issues":24,"watchers":220,"default_branch":"master"}},"base":{"label":"apiaryio:shared/mson-integration","ref":"shared/mson-integration","sha":"946e20940995366ad1bea0a5f2e70ea6f0b024fc","user":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"repo":{"id":9173280,"name":"snowcrash","full_name":"apiaryio/snowcrash","owner":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apiaryio/snowcrash","description":"API Blueprint Parser","fork":false,"url":"https://api.github.com/repos/apiaryio/snowcrash","forks_url":"https://api.github.com/repos/apiaryio/snowcrash/forks","keys_url":"https://api.github.com/repos/apiaryio/snowcrash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apiaryio/snowcrash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apiaryio/snowcrash/teams","hooks_url":"https://api.github.com/repos/apiaryio/snowcrash/hooks","issue_events_url":"https://api.github.com/repos/apiaryio/snowcrash/issues/events{/number}","events_url":"https://api.github.com/repos/apiaryio/snowcrash/events","assignees_url":"https://api.github.com/repos/apiaryio/snowcrash/assignees{/user}","branches_url":"https://api.github.com/repos/apiaryio/snowcrash/branches{/branch}","tags_url":"https://api.github.com/repos/apiaryio/snowcrash/tags","blobs_url":"https://api.github.com/repos/apiaryio/snowcrash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apiaryio/snowcrash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apiaryio/snowcrash/git/refs{/sha}","trees_url":"https://api.github.com/repos/apiaryio/snowcrash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apiaryio/snowcrash/statuses/{sha}","languages_url":"https://api.github.com/repos/apiaryio/snowcrash/languages","stargazers_url":"https://api.github.com/repos/apiaryio/snowcrash/stargazers","contributors_url":"https://api.github.com/repos/apiaryio/snowcrash/contributors","subscribers_url":"https://api.github.com/repos/apiaryio/snowcrash/subscribers","subscription_url":"https://api.github.com/repos/apiaryio/snowcrash/subscription","commits_url":"https://api.github.com/repos/apiaryio/snowcrash/commits{/sha}","git_commits_url":"https://api.github.com/repos/apiaryio/snowcrash/git/commits{/sha}","comments_url":"https://api.github.com/repos/apiaryio/snowcrash/comments{/number}","issue_comment_url":"https://api.github.com/repos/apiaryio/snowcrash/issues/comments/{number}","contents_url":"https://api.github.com/repos/apiaryio/snowcrash/contents/{+path}","compare_url":"https://api.github.com/repos/apiaryio/snowcrash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apiaryio/snowcrash/merges","archive_url":"https://api.github.com/repos/apiaryio/snowcrash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apiaryio/snowcrash/downloads","issues_url":"https://api.github.com/repos/apiaryio/snowcrash/issues{/number}","pulls_url":"https://api.github.com/repos/apiaryio/snowcrash/pulls{/number}","milestones_url":"https://api.github.com/repos/apiaryio/snowcrash/milestones{/number}","notifications_url":"https://api.github.com/repos/apiaryio/snowcrash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apiaryio/snowcrash/labels{/name}","releases_url":"https://api.github.com/repos/apiaryio/snowcrash/releases{/id}","created_at":"2013-04-02T15:23:04Z","updated_at":"2015-01-23T09:40:41Z","pushed_at":"2015-01-22T15:40:50Z","git_url":"git://github.com/apiaryio/snowcrash.git","ssh_url":"git@github.com:apiaryio/snowcrash.git","clone_url":"https://github.com/apiaryio/snowcrash.git","svn_url":"https://github.com/apiaryio/snowcrash","homepage":null,"size":6019,"stargazers_count":220,"watchers_count":220,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":24,"forks":36,"open_issues":24,"watchers":220,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apiaryio/snowcrash/pulls/272"},"html":{"href":"https://github.com/apiaryio/snowcrash/pull/272"},"issue":{"href":"https://api.github.com/repos/apiaryio/snowcrash/issues/272"},"comments":{"href":"https://api.github.com/repos/apiaryio/snowcrash/issues/272/comments"},"review_comments":{"href":"https://api.github.com/repos/apiaryio/snowcrash/pulls/272/comments"},"review_comment":{"href":"https://api.github.com/repos/apiaryio/snowcrash/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/apiaryio/snowcrash/pulls/272/commits"},"statuses":{"href":"https://api.github.com/repos/apiaryio/snowcrash/statuses/3176ed84b69805842ed933f130566a57c5839117"}}}}