{ "$defs": { "contents_type": { "oneOf": [ { "const": "file" }, { "const": "dir" }, { "const": "symlink" }, { "const": "submodule" } ], "type": "string" }, "encoding": { "oneOf": [ { "const": "base64" }, { "const": "utf-8" } ], "type": "string" }, "hook_event": { "oneOf": [ { "const": "push" }, { "const": "pull_request" } ], "type": "string" }, "node_type": { "oneOf": [ { "const": "blob" }, { "const": "tree" }, { "const": "commit" } ], "type": "string" }, "owner_type": { "oneOf": [ { "const": "User" } ], "type": "string" }, "visibility": { "oneOf": [ { "const": "all" }, { "const": "public" }, { "const": "private" } ], "type": "string" }, "blob": { "properties": { "content": { "type": "string" }, "encoding": { "$ref": "#/$defs/encoding" }, "url": { "type": "string" }, "sha": { "type": "string" }, "size": { "type": "number" } }, "required": [ "content", "encoding", "url", "sha", "size" ], "type": "object" }, "blob_created": { "properties": { "url": { "type": "string" }, "sha": { "type": "string" } }, "required": [ "url", "sha" ], "type": "object" }, "blob_form": { "properties": { "content": { "type": "string" }, "encoding": { "$ref": "#/$defs/encoding" } }, "required": [ "content", "encoding" ], "type": "object" }, "commit": { "properties": { "sha": { "type": "string" }, "url": { "type": "string" }, "html_url": { "type": "string" }, "author": { "$ref": "#/$defs/person" }, "committer": { "$ref": "#/$defs/person" }, "tree": { "$ref": "#/$defs/tree_summary" }, "message": { "type": "string" }, "parents": { "items": { "$ref": "#/$defs/commit_summary" }, "type": "array" } }, "required": [ "sha", "url", "html_url", "author", "committer", "tree", "message", "parents" ], "type": "object" }, "commit_form": { "properties": { "message": { "type": "string" }, "tree": { "type": "string" }, "parents": { "items": { "type": "string" }, "type": "array" }, "author": { "$ref": "#/$defs/person" }, "committer": { "$ref": "#/$defs/person" } }, "required": [ "message", "tree", "parents", "author", "committer" ], "type": "object" }, "commit_response": { "properties": { "sha": { "type": "string" }, "url": { "type": "string" }, "author": { "$ref": "#/$defs/person" }, "committer": { "$ref": "#/$defs/person" }, "message": { "type": "string" }, "tree": { "$ref": "#/$defs/tree_summary" }, "parents": { "items": { "$ref": "#/$defs/tree_summary" }, "type": "array" } }, "required": [ "sha", "url", "author", "committer", "message", "tree", "parents" ], "type": "object" }, "commit_summary": { "properties": { "sha": { "type": "string" }, "url": { "type": "string" } }, "required": [ "sha", "url" ], "type": "object" }, "contents": { "properties": { "type": { "$ref": "#/$defs/contents_type" }, "encoding": { "$ref": "#/$defs/encoding" }, "size": { "type": "number" }, "name": { "type": "string" }, "path": { "type": "string" }, "content": { "type": "string" }, "sha": { "type": "string" }, "url": { "type": "string" }, "git_url": { "type": "string" }, "html_url": { "type": "string" }, "download_url": { "type": "string" } }, "required": [ "type", "encoding", "size", "name", "path", "sha", "url", "git_url", "html_url", "download_url" ], "type": "object" }, "create_tree_form": { "properties": { "base_tree": { "type": "string" }, "tree": { "items": { "$ref": "#/$defs/tree_form" }, "type": "array" } }, "required": [ "base_tree", "tree" ], "type": "object" }, "create_tree_response": { "properties": { "sha": { "type": "string" }, "url": { "type": "string" }, "tree_result": { "$ref": "#/$defs/tree" } }, "required": [ "sha", "url", "tree_result" ], "type": "object" }, "error": { "properties": { "resource": { "type": "string" }, "field": { "type": "string" }, "code": { "type": "string" } }, "required": [ "resource", "field", "code" ], "type": "object" }, "github_object": { "properties": { "type": { "type": "string" }, "sha": { "type": "string" }, "url": { "type": "string" } }, "required": [ "type", "sha", "url" ], "type": "object" }, "hook": { "properties": { "id": { "type": "number" }, "url": { "type": "string" }, "test_url": { "type": "string" }, "ping_url": { "type": "string" }, "name": { "type": "string" }, "events": { "items": { "$ref": "#/$defs/hook_event" }, "type": "array" }, "active": { "type": "boolean" }, "config": { "$ref": "#/$defs/hook_config" }, "updated_at": { "type": "string" }, "created_at": { "type": "string" } }, "required": [ "id", "url", "test_url", "ping_url", "name", "events", "active", "config", "updated_at", "created_at" ], "type": "object" }, "hook_config": { "properties": { "url": { "type": "string" }, "content_type": { "type": "string" } }, "required": [], "type": "object" }, "hook_form": { "properties": { "name": { "type": "string" }, "config": { "$ref": "#/$defs/hook_config" }, "events": { "items": { "$ref": "#/$defs/hook_event" }, "type": "array" }, "active": { "type": "boolean" } }, "required": [ "name", "config", "events", "active" ], "type": "object" }, "node": { "properties": { "path": { "type": "string" }, "mode": { "type": "string" }, "type": { "$ref": "#/$defs/node_type" }, "size": { "type": "number" }, "sha": { "type": "string" }, "url": { "type": "string" } }, "required": [ "path", "mode", "type", "size", "sha", "url" ], "type": "object" }, "node_form": { "properties": { "path": { "type": "string" }, "mode": { "type": "string" }, "type": { "$ref": "#/$defs/node_type" }, "sha": { "type": "string" } }, "required": [ "path", "mode", "type", "sha" ], "type": "object" }, "person": { "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "date": { "type": "string" } }, "required": [ "name", "email", "date" ], "type": "object" }, "pull_request": { "properties": { "id": { "type": "number" }, "url": { "type": "string" }, "number": { "type": "number" }, "html_url": { "type": "string" }, "head": { "$ref": "#/$defs/pull_request_head" } }, "required": [ "id", "url", "number", "html_url", "head" ], "type": "object" }, "pull_request_form": { "properties": { "title": { "type": "string" }, "head": { "type": "string" }, "base": { "type": "string" }, "body": { "type": "string" } }, "required": [ "title", "head", "base" ], "type": "object" }, "pull_request_head": { "properties": { "ref": { "type": "string" } }, "required": [ "ref" ], "type": "object" }, "ref": { "properties": { "ref": { "type": "string" }, "url": { "type": "string" }, "object": { "$ref": "#/$defs/github_object" } }, "required": [ "ref", "url", "object" ], "type": "object" }, "ref_form": { "properties": { "ref": { "type": "string" }, "sha": { "type": "string" } }, "required": [ "ref", "sha" ], "type": "object" }, "ref_update_form": { "properties": { "sha": { "type": "string" } }, "required": [ "sha" ], "type": "object" }, "repository": { "properties": { "id": { "type": "number" }, "owner": { "$ref": "#/$defs/user" }, "name": { "type": "string" }, "full_name": { "type": "string" }, "private": { "type": "boolean" }, "description": { "type": "string" }, "url": { "type": "string" }, "html_url": { "type": "string" }, "default_branch": { "type": "string" } }, "required": [ "id", "owner", "name", "full_name", "private", "url", "html_url", "default_branch" ], "type": "object" }, "tag": { "properties": { "tag": { "type": "string" }, "sha": { "type": "string" }, "url": { "type": "string" }, "message": { "type": "string" }, "tagger": { "$ref": "#/$defs/tagger" }, "object": { "$ref": "#/$defs/github_object" } }, "required": [ "tag", "sha", "url", "message", "tagger", "object" ], "type": "object" }, "tag_form": { "properties": { "tag": { "type": "string" }, "message": { "type": "string" }, "object": { "type": "string" }, "type": { "type": "string" }, "tagger": { "$ref": "#/$defs/tagger" } }, "required": [ "tag", "message", "object", "type", "tagger" ], "type": "object" }, "tag_summary": { "properties": { "name": { "type": "string" }, "commit": { "$ref": "#/$defs/commit_summary" } }, "required": [ "name", "commit" ], "type": "object" }, "tagger": { "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "date": { "type": "string" } }, "required": [ "name", "email", "date" ], "type": "object" }, "tree": { "properties": { "sha": { "type": "string" }, "url": { "type": "string" }, "truncated": { "type": "boolean" }, "tree": { "items": { "$ref": "#/$defs/node" }, "type": "array" } }, "required": [ "sha", "url", "truncated", "tree" ], "type": "object" }, "tree_form": { "properties": { "path": { "type": "string" }, "mode": { "type": "string" }, "type": { "$ref": "#/$defs/node_type" }, "sha": { "type": "string" }, "content": { "type": "string" } }, "required": [ "path", "mode", "type" ], "type": "object" }, "tree_result": { "properties": { "path": { "type": "string" }, "mode": { "type": "string" }, "type": { "$ref": "#/$defs/node_type" }, "size": { "type": "number" }, "sha": { "type": "string" }, "url": { "type": "string" } }, "required": [ "path", "mode", "type", "size", "sha", "url" ], "type": "object" }, "tree_summary": { "properties": { "url": { "type": "string" }, "sha": { "type": "string" } }, "required": [ "url", "sha" ], "type": "object" }, "unprocessable_entity": { "properties": { "message": { "type": "string" }, "errors": { "items": { "$ref": "#/$defs/error" }, "type": "array" } }, "required": [ "message" ], "type": "object" }, "user": { "properties": { "id": { "type": "number" }, "login": { "type": "string" }, "name": { "type": "string" }, "email": { "type": "string" }, "avatar_url": { "type": "string" }, "gravatar_id": { "type": "string" }, "url": { "type": "string" }, "html_url": { "type": "string" }, "type": { "$ref": "#/$defs/owner_type" } }, "required": [ "id", "login", "url", "html_url", "type" ], "type": "object" }, "user_email": { "properties": { "email": { "type": "string" }, "verified": { "type": "boolean" }, "primary": { "type": "boolean" } }, "required": [ "email", "verified", "primary" ], "type": "object" }, "user_org": { "properties": { "login": { "type": "string" } }, "required": [ "login" ], "type": "object" } }, "additionalProperties": true, "properties": { "authenticated": { "const": true, "type": "boolean" }, "body": { "type": "object" }, "rawBody": { "type": "object" }, "headers": { "type": "object" }, "method": { "const": "GET", "type": "string" }, "parameterizedUrl": { "const": "/repos/:owner/:repo/git/blobs/:sha", "type": "string" }, "path": { "type": "string" }, "query": { "type": "object" }, "url": { "type": "string" } }, "required": [ "body", "rawBody", "query", "path", "url", "method" ], "type": "object" }