{"action":"created","comment":{"url":"https://api.github.com/repos/inveniosoftware/doschema/pulls/comments/61728604","id":61728604,"diff_hunk":"@@ -0,0 +1,326 @@\n+# -*- coding: utf-8 -*-\n+#\n+# This file is part of DoSchema.\n+# Copyright (C) 2016 CERN.\n+#\n+# DoSchema is free software; you can redistribute it\n+# and/or modify it under the terms of the GNU General Public License as\n+# published by the Free Software Foundation; either version 2 of the\n+# License, or (at your option) any later version.\n+#\n+# DoSchema is distributed in the hope that it will be\n+# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n+# General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License\n+# along with DoSchema; if not, write to the\n+# Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,\n+# MA 02111-1307, USA.\n+#\n+# In applying this license, CERN does not\n+# waive the privileges and immunities granted to it by virtue of its status\n+# as an Intergovernmental Organization or submit itself to any jurisdiction.\n+\n+\"\"\"Merger module.\"\"\"\n+\n+\n+import collections\n+\n+import jsonschema\n+\n+from doschema.errors import JSONSchemaCompatibilityException, \\\n+    JSONSchemaDependenciesException, JSONSchemaEnumException, \\\n+    JSONSchemaRootNotObjectException, NotSupportedException\n+\n+\n+class JSONSchemaValidation(object):\n+    \"\"\"Class for checking compatibility between schemas.\"\"\"\n+\n+    COLLECTION_KEYS = frozenset(['allOf', 'anyOf', 'oneOf'])\n+\n+    def __init__(self, ignore_index=True, resolver_factory=False):\n+        \"\"\"Constructor.\n+\n+        :param ignore_index: If set to True, which is default, it will ignore\n+                             array indexes.\n+        :param resolver_factory: Resolver used to retrieve referenced schemas.\n+                                 If not provided it will use default.\n+\n+        \"\"\"\n+        self.ignore_index = ignore_index\n+        self.fields_types_dict = {}\n+        self.uri = None\n+        self.resolver_factory = resolver_factory or jsonschema.RefResolver\n+\n+    def start(self, schema, uri):\n+        \"\"\"Start processing a given list of schemas.\n+\n+        :param schema: Name of schema that is currently processed.\n+        :param uri: Name of schema that is currently processed.\n+        \"\"\"\n+        self.uri = uri\n+        self.resolver = self.resolver_factory(base_uri=uri, referrer=schema)\n+\n+        self.validate_schema(schema, ())\n+\n+        self.uri = None\n+        self.resolver = None\n+\n+    def validate_schema(self, curr_schema, curr_field):\n+        \"\"\"Go through the schema and retrieve schema's particular fields.\n+\n+        :param curr_schema: Schema or subschema that is currently processed.\n+        :param curr_field: Tuple with path to currently processed field.\n+        \"\"\"\n+        self.validate_collection(curr_schema, curr_field)\n+\n+        while '$ref' in curr_schema:\n+            path = curr_schema.get('$ref')\n+            curr_schema = self.resolver.resolve(path)[1]\n+\n+        field = self.fields_types_dict.get(curr_field)\n+\n+        if \"type\" in curr_schema:\n+            if field and curr_schema['type'] != field.field_type:\n+                err_msg = \"{0} type mismatch in schemas {1} and {2}.\"\n+                raise JSONSchemaCompatibilityException(\n+                    field.schema_index,\n+                    self.uri,\n+                    err_msg.format(\n+                        self.make_json_pointer(curr_field),\n+                        field.schema_index,\n+                        self.uri\n+                    )\n+                )\n+            self.add_field_to_dict(curr_field, curr_schema['type'])\n+\n+            if curr_schema['type'] == 'array':\n+                self.validate_array(\n+                    curr_schema['items'],\n+                    curr_field + ('items',)\n+                )\n+\n+        if \"enum\" in curr_schema:\n+            enum_type = self.validate_enum(\n+                curr_schema['enum'],\n+                curr_field,\n+                curr_schema.get('type')\n+            )\n+            if field is not None and field.field_type != enum_type:\n+                err_msg = \"Enum {0} conflicting itself error in schema {1}.\"\n+                raise JSONSchemaEnumException(\n+                    self.uri,\n+                    err_msg.format(\n+                        self.make_json_pointer(curr_field),\n+                        self.uri\n+                    )\n+                )\n+            self.add_field_to_dict(curr_field, enum_type)\n+\n+        if 'properties' in curr_schema:\n+            if field and field.field_type != \"object\":\n+                err_msg = \"Root {0} is not object error in schema {1}\"\n+                raise JSONSchemaRootNotObjectException(\n+                    self.uri,\n+                    err_msg.format(\n+                        self.make_json_pointer(curr_field),\n+                        self.uri\n+                    )\n+                )\n+\n+            self.add_field_to_dict(curr_field, 'object')\n+            for prop in curr_schema['properties']:\n+                self.validate_schema(\n+                    curr_schema['properties'][prop],\n+                    curr_field + (prop,)\n+                )\n+\n+        if \"dependencies\" in curr_schema:\n+            if field and field.field_type != \"object\":\n+                err_msg = \"Dependencies {0} error in schema {1}.\"\n+                raise JSONSchemaDependenciesException(\n+                    self.uri,\n+                    err_msg.format(\n+                        self.make_json_pointer(curr_field),\n+                        self.uri\n+                    )\n+                )\n+            self.add_field_to_dict(curr_field, 'object')\n+            self.validate_dependencies(curr_schema, curr_field)\n+\n+    def add_field_to_dict(self, curr_field, field_type):\n+        \"\"\"Add record to the dictionary.\n+\n+        :param curr_field: Tuple with path to currently processed field.\n+        :param field_type: Type of currently processed field.\n+        \"\"\"\n+        self.fields_types_dict[curr_field] = FieldToAdd(\n+                schema_index=self.uri,\n+                field_tuple=curr_field,\n+                field_type=field_type\n+            )\n+\n+    def validate_array(self, field_value, curr_field):\n+        \"\"\"Process each JSON object in the array according to ignore_index.\n+\n+        :param field_value: Type of the field.\n+        :param curr_field: Tuple with path to currently processed field.\n+        \"\"\"\n+        field_path = curr_field\n+        if isinstance(field_value, list):\n+            for elem in field_value:\n+                if self.ignore_index:\n+                    new_field_path = field_path\n+                else:\n+                    new_field_path = field_path + (field_value.index(elem), )\n+\n+                self.validate_schema(elem, new_field_path)\n+\n+        elif isinstance(field_value, dict):\n+            self.validate_schema(field_value, curr_field)\n+\n+    def validate_collection(self, curr_schema, curr_field):\n+        \"\"\"Check schema for allOf, anyOf and oneOf.\n+\n+        :param curr_schema: Schema or subschema that is currently processed.\n+        :param curr_field: Tuple with path to currently processed field.\n+        \"\"\"\n+        keys = self.COLLECTION_KEYS.intersection(curr_schema)\n+        for key in keys:\n+            subschema = curr_schema[key]\n+\n+            if isinstance(subschema, list):\n+                for elem in subschema:\n+                    self.validate_schema(elem, curr_field)\n+\n+                props = map(lambda x: x.get('properties'), subschema)\n+                flattened_props = {}\n+\n+                for prop in props:\n+                    if prop:\n+                        for key, value in prop.items():\n+                            flattened_props[key] = value\n+\n+                for dependency in map(\n+                    lambda x: x.get('dependencies'),\n+                    subschema\n+                ):\n+                    if dependency:\n+                        self.validate_dependencies(\n+                            {'properties': props},\n+                            curr_field + ('dependencies', )\n+                        )\n+            elif isinstance(subschema, dict):\n+                self.validate_schema(elem, curr_field)\n+\n+    def validate_dependencies(self, curr_schema, curr_field):\n+        \"\"\"validate_schema and check dependencies in schema.\n+\n+        :param curr_schema: Schema or subschema that is currently processed.\n+        :param curr_field: Tuple with path to currently processed field.\n+        \"\"\"\n+        dependencies = curr_schema['dependencies']\n+\n+        while '$ref' in dependencies:\n+            path = dependencies.get('$ref')\n+            dependencies = self.resolver.resolve(path)[1]\n+\n+        for field_name, field_value in dependencies.items():\n+            if curr_field + (field_name, ) not in self.fields_types_dict:\n+                continue\n+\n+            err_msg = \"Dependencies error in field {0} in schema {1}.\"\n+\n+            if isinstance(field_value, dict):\n+                for name, value in field_value['properties'].items():","path":"doschema/jsvalidation.py","position":236,"original_position":236,"commit_id":"b39e0dbb2ff5a82935a963028a080c65ee79e48c","original_commit_id":"b39e0dbb2ff5a82935a963028a080c65ee79e48c","user":{"login":"nharraud","id":5708796,"avatar_url":"https://avatars.githubusercontent.com/u/5708796?v=3","gravatar_id":"","url":"https://api.github.com/users/nharraud","html_url":"https://github.com/nharraud","followers_url":"https://api.github.com/users/nharraud/followers","following_url":"https://api.github.com/users/nharraud/following{/other_user}","gists_url":"https://api.github.com/users/nharraud/gists{/gist_id}","starred_url":"https://api.github.com/users/nharraud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nharraud/subscriptions","organizations_url":"https://api.github.com/users/nharraud/orgs","repos_url":"https://api.github.com/users/nharraud/repos","events_url":"https://api.github.com/users/nharraud/events{/privacy}","received_events_url":"https://api.github.com/users/nharraud/received_events","type":"User","site_admin":false},"body":"It might be better to call `validate_schema` on `field_value` in this case.","created_at":"2016-05-02T11:40:15Z","updated_at":"2016-05-02T11:40:15Z","html_url":"https://github.com/inveniosoftware/doschema/pull/3#discussion_r61728604","pull_request_url":"https://api.github.com/repos/inveniosoftware/doschema/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/inveniosoftware/doschema/pulls/comments/61728604"},"html":{"href":"https://github.com/inveniosoftware/doschema/pull/3#discussion_r61728604"},"pull_request":{"href":"https://api.github.com/repos/inveniosoftware/doschema/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/inveniosoftware/doschema/pulls/3","id":62764392,"html_url":"https://github.com/inveniosoftware/doschema/pull/3","diff_url":"https://github.com/inveniosoftware/doschema/pull/3.diff","patch_url":"https://github.com/inveniosoftware/doschema/pull/3.patch","issue_url":"https://api.github.com/repos/inveniosoftware/doschema/issues/3","number":3,"state":"open","locked":false,"title":"WIP global: new schemas compatibility function","user":{"login":"Paulina1","id":1929323,"avatar_url":"https://avatars.githubusercontent.com/u/1929323?v=3","gravatar_id":"","url":"https://api.github.com/users/Paulina1","html_url":"https://github.com/Paulina1","followers_url":"https://api.github.com/users/Paulina1/followers","following_url":"https://api.github.com/users/Paulina1/following{/other_user}","gists_url":"https://api.github.com/users/Paulina1/gists{/gist_id}","starred_url":"https://api.github.com/users/Paulina1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Paulina1/subscriptions","organizations_url":"https://api.github.com/users/Paulina1/orgs","repos_url":"https://api.github.com/users/Paulina1/repos","events_url":"https://api.github.com/users/Paulina1/events{/privacy}","received_events_url":"https://api.github.com/users/Paulina1/received_events","type":"User","site_admin":false},"body":"* NEW Adds a function which checks the backward compatibility\r\n  of JSON Schemas.\r\n\r\nSigned-off-by: Paulina1 <paulina.malgorzata.lach@cern.cech>","created_at":"2016-03-14T15:18:22Z","updated_at":"2016-05-02T11:40:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4ed8754818ab9a6a22844509f57a94b5b7928141","assignee":{"login":"Paulina1","id":1929323,"avatar_url":"https://avatars.githubusercontent.com/u/1929323?v=3","gravatar_id":"","url":"https://api.github.com/users/Paulina1","html_url":"https://github.com/Paulina1","followers_url":"https://api.github.com/users/Paulina1/followers","following_url":"https://api.github.com/users/Paulina1/following{/other_user}","gists_url":"https://api.github.com/users/Paulina1/gists{/gist_id}","starred_url":"https://api.github.com/users/Paulina1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Paulina1/subscriptions","organizations_url":"https://api.github.com/users/Paulina1/orgs","repos_url":"https://api.github.com/users/Paulina1/repos","events_url":"https://api.github.com/users/Paulina1/events{/privacy}","received_events_url":"https://api.github.com/users/Paulina1/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/inveniosoftware/doschema/milestones/1","html_url":"https://github.com/inveniosoftware/doschema/milestones/v0.1.0","labels_url":"https://api.github.com/repos/inveniosoftware/doschema/milestones/1/labels","id":1628488,"number":1,"title":"v0.1.0","description":null,"creator":{"login":"jirikuncar","id":189798,"avatar_url":"https://avatars.githubusercontent.com/u/189798?v=3","gravatar_id":"","url":"https://api.github.com/users/jirikuncar","html_url":"https://github.com/jirikuncar","followers_url":"https://api.github.com/users/jirikuncar/followers","following_url":"https://api.github.com/users/jirikuncar/following{/other_user}","gists_url":"https://api.github.com/users/jirikuncar/gists{/gist_id}","starred_url":"https://api.github.com/users/jirikuncar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirikuncar/subscriptions","organizations_url":"https://api.github.com/users/jirikuncar/orgs","repos_url":"https://api.github.com/users/jirikuncar/repos","events_url":"https://api.github.com/users/jirikuncar/events{/privacy}","received_events_url":"https://api.github.com/users/jirikuncar/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":1,"state":"open","created_at":"2016-03-08T10:12:59Z","updated_at":"2016-03-16T13:11:31Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/inveniosoftware/doschema/pulls/3/commits","review_comments_url":"https://api.github.com/repos/inveniosoftware/doschema/pulls/3/comments","review_comment_url":"https://api.github.com/repos/inveniosoftware/doschema/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inveniosoftware/doschema/issues/3/comments","statuses_url":"https://api.github.com/repos/inveniosoftware/doschema/statuses/b39e0dbb2ff5a82935a963028a080c65ee79e48c","head":{"label":"Paulina1:doschemaMine","ref":"doschemaMine","sha":"b39e0dbb2ff5a82935a963028a080c65ee79e48c","user":{"login":"Paulina1","id":1929323,"avatar_url":"https://avatars.githubusercontent.com/u/1929323?v=3","gravatar_id":"","url":"https://api.github.com/users/Paulina1","html_url":"https://github.com/Paulina1","followers_url":"https://api.github.com/users/Paulina1/followers","following_url":"https://api.github.com/users/Paulina1/following{/other_user}","gists_url":"https://api.github.com/users/Paulina1/gists{/gist_id}","starred_url":"https://api.github.com/users/Paulina1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Paulina1/subscriptions","organizations_url":"https://api.github.com/users/Paulina1/orgs","repos_url":"https://api.github.com/users/Paulina1/repos","events_url":"https://api.github.com/users/Paulina1/events{/privacy}","received_events_url":"https://api.github.com/users/Paulina1/received_events","type":"User","site_admin":false},"repo":{"id":53479901,"name":"doschema","full_name":"Paulina1/doschema","owner":{"login":"Paulina1","id":1929323,"avatar_url":"https://avatars.githubusercontent.com/u/1929323?v=3","gravatar_id":"","url":"https://api.github.com/users/Paulina1","html_url":"https://github.com/Paulina1","followers_url":"https://api.github.com/users/Paulina1/followers","following_url":"https://api.github.com/users/Paulina1/following{/other_user}","gists_url":"https://api.github.com/users/Paulina1/gists{/gist_id}","starred_url":"https://api.github.com/users/Paulina1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Paulina1/subscriptions","organizations_url":"https://api.github.com/users/Paulina1/orgs","repos_url":"https://api.github.com/users/Paulina1/repos","events_url":"https://api.github.com/users/Paulina1/events{/privacy}","received_events_url":"https://api.github.com/users/Paulina1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Paulina1/doschema","description":"Utilities to work with JSON Schemas.","fork":true,"url":"https://api.github.com/repos/Paulina1/doschema","forks_url":"https://api.github.com/repos/Paulina1/doschema/forks","keys_url":"https://api.github.com/repos/Paulina1/doschema/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Paulina1/doschema/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Paulina1/doschema/teams","hooks_url":"https://api.github.com/repos/Paulina1/doschema/hooks","issue_events_url":"https://api.github.com/repos/Paulina1/doschema/issues/events{/number}","events_url":"https://api.github.com/repos/Paulina1/doschema/events","assignees_url":"https://api.github.com/repos/Paulina1/doschema/assignees{/user}","branches_url":"https://api.github.com/repos/Paulina1/doschema/branches{/branch}","tags_url":"https://api.github.com/repos/Paulina1/doschema/tags","blobs_url":"https://api.github.com/repos/Paulina1/doschema/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Paulina1/doschema/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Paulina1/doschema/git/refs{/sha}","trees_url":"https://api.github.com/repos/Paulina1/doschema/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Paulina1/doschema/statuses/{sha}","languages_url":"https://api.github.com/repos/Paulina1/doschema/languages","stargazers_url":"https://api.github.com/repos/Paulina1/doschema/stargazers","contributors_url":"https://api.github.com/repos/Paulina1/doschema/contributors","subscribers_url":"https://api.github.com/repos/Paulina1/doschema/subscribers","subscription_url":"https://api.github.com/repos/Paulina1/doschema/subscription","commits_url":"https://api.github.com/repos/Paulina1/doschema/commits{/sha}","git_commits_url":"https://api.github.com/repos/Paulina1/doschema/git/commits{/sha}","comments_url":"https://api.github.com/repos/Paulina1/doschema/comments{/number}","issue_comment_url":"https://api.github.com/repos/Paulina1/doschema/issues/comments{/number}","contents_url":"https://api.github.com/repos/Paulina1/doschema/contents/{+path}","compare_url":"https://api.github.com/repos/Paulina1/doschema/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Paulina1/doschema/merges","archive_url":"https://api.github.com/repos/Paulina1/doschema/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Paulina1/doschema/downloads","issues_url":"https://api.github.com/repos/Paulina1/doschema/issues{/number}","pulls_url":"https://api.github.com/repos/Paulina1/doschema/pulls{/number}","milestones_url":"https://api.github.com/repos/Paulina1/doschema/milestones{/number}","notifications_url":"https://api.github.com/repos/Paulina1/doschema/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Paulina1/doschema/labels{/name}","releases_url":"https://api.github.com/repos/Paulina1/doschema/releases{/id}","deployments_url":"https://api.github.com/repos/Paulina1/doschema/deployments","created_at":"2016-03-09T08:11:46Z","updated_at":"2016-03-09T08:11:47Z","pushed_at":"2016-05-02T08:34:30Z","git_url":"git://github.com/Paulina1/doschema.git","ssh_url":"git@github.com:Paulina1/doschema.git","clone_url":"https://github.com/Paulina1/doschema.git","svn_url":"https://github.com/Paulina1/doschema","homepage":null,"size":35,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"inveniosoftware:master","ref":"master","sha":"3d606f2d5791756a3eb8408fada31bf6b949f9e7","user":{"login":"inveniosoftware","id":1157480,"avatar_url":"https://avatars.githubusercontent.com/u/1157480?v=3","gravatar_id":"","url":"https://api.github.com/users/inveniosoftware","html_url":"https://github.com/inveniosoftware","followers_url":"https://api.github.com/users/inveniosoftware/followers","following_url":"https://api.github.com/users/inveniosoftware/following{/other_user}","gists_url":"https://api.github.com/users/inveniosoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/inveniosoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inveniosoftware/subscriptions","organizations_url":"https://api.github.com/users/inveniosoftware/orgs","repos_url":"https://api.github.com/users/inveniosoftware/repos","events_url":"https://api.github.com/users/inveniosoftware/events{/privacy}","received_events_url":"https://api.github.com/users/inveniosoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":53312610,"name":"doschema","full_name":"inveniosoftware/doschema","owner":{"login":"inveniosoftware","id":1157480,"avatar_url":"https://avatars.githubusercontent.com/u/1157480?v=3","gravatar_id":"","url":"https://api.github.com/users/inveniosoftware","html_url":"https://github.com/inveniosoftware","followers_url":"https://api.github.com/users/inveniosoftware/followers","following_url":"https://api.github.com/users/inveniosoftware/following{/other_user}","gists_url":"https://api.github.com/users/inveniosoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/inveniosoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inveniosoftware/subscriptions","organizations_url":"https://api.github.com/users/inveniosoftware/orgs","repos_url":"https://api.github.com/users/inveniosoftware/repos","events_url":"https://api.github.com/users/inveniosoftware/events{/privacy}","received_events_url":"https://api.github.com/users/inveniosoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inveniosoftware/doschema","description":"Utilities to work with JSON Schemas.","fork":false,"url":"https://api.github.com/repos/inveniosoftware/doschema","forks_url":"https://api.github.com/repos/inveniosoftware/doschema/forks","keys_url":"https://api.github.com/repos/inveniosoftware/doschema/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inveniosoftware/doschema/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inveniosoftware/doschema/teams","hooks_url":"https://api.github.com/repos/inveniosoftware/doschema/hooks","issue_events_url":"https://api.github.com/repos/inveniosoftware/doschema/issues/events{/number}","events_url":"https://api.github.com/repos/inveniosoftware/doschema/events","assignees_url":"https://api.github.com/repos/inveniosoftware/doschema/assignees{/user}","branches_url":"https://api.github.com/repos/inveniosoftware/doschema/branches{/branch}","tags_url":"https://api.github.com/repos/inveniosoftware/doschema/tags","blobs_url":"https://api.github.com/repos/inveniosoftware/doschema/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inveniosoftware/doschema/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inveniosoftware/doschema/git/refs{/sha}","trees_url":"https://api.github.com/repos/inveniosoftware/doschema/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inveniosoftware/doschema/statuses/{sha}","languages_url":"https://api.github.com/repos/inveniosoftware/doschema/languages","stargazers_url":"https://api.github.com/repos/inveniosoftware/doschema/stargazers","contributors_url":"https://api.github.com/repos/inveniosoftware/doschema/contributors","subscribers_url":"https://api.github.com/repos/inveniosoftware/doschema/subscribers","subscription_url":"https://api.github.com/repos/inveniosoftware/doschema/subscription","commits_url":"https://api.github.com/repos/inveniosoftware/doschema/commits{/sha}","git_commits_url":"https://api.github.com/repos/inveniosoftware/doschema/git/commits{/sha}","comments_url":"https://api.github.com/repos/inveniosoftware/doschema/comments{/number}","issue_comment_url":"https://api.github.com/repos/inveniosoftware/doschema/issues/comments{/number}","contents_url":"https://api.github.com/repos/inveniosoftware/doschema/contents/{+path}","compare_url":"https://api.github.com/repos/inveniosoftware/doschema/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inveniosoftware/doschema/merges","archive_url":"https://api.github.com/repos/inveniosoftware/doschema/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inveniosoftware/doschema/downloads","issues_url":"https://api.github.com/repos/inveniosoftware/doschema/issues{/number}","pulls_url":"https://api.github.com/repos/inveniosoftware/doschema/pulls{/number}","milestones_url":"https://api.github.com/repos/inveniosoftware/doschema/milestones{/number}","notifications_url":"https://api.github.com/repos/inveniosoftware/doschema/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inveniosoftware/doschema/labels{/name}","releases_url":"https://api.github.com/repos/inveniosoftware/doschema/releases{/id}","deployments_url":"https://api.github.com/repos/inveniosoftware/doschema/deployments","created_at":"2016-03-07T09:26:28Z","updated_at":"2016-03-08T10:40:38Z","pushed_at":"2016-05-02T08:34:31Z","git_url":"git://github.com/inveniosoftware/doschema.git","ssh_url":"git@github.com:inveniosoftware/doschema.git","clone_url":"https://github.com/inveniosoftware/doschema.git","svn_url":"https://github.com/inveniosoftware/doschema","homepage":null,"size":24,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inveniosoftware/doschema/pulls/3"},"html":{"href":"https://github.com/inveniosoftware/doschema/pull/3"},"issue":{"href":"https://api.github.com/repos/inveniosoftware/doschema/issues/3"},"comments":{"href":"https://api.github.com/repos/inveniosoftware/doschema/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/inveniosoftware/doschema/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/inveniosoftware/doschema/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inveniosoftware/doschema/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/inveniosoftware/doschema/statuses/b39e0dbb2ff5a82935a963028a080c65ee79e48c"}}}}