summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/entities/github/pull_request.json
diff options
context:
space:
mode:
Diffstat (limited to 'spec/fixtures/api/schemas/entities/github/pull_request.json')
-rw-r--r--spec/fixtures/api/schemas/entities/github/pull_request.json108
1 files changed, 108 insertions, 0 deletions
diff --git a/spec/fixtures/api/schemas/entities/github/pull_request.json b/spec/fixtures/api/schemas/entities/github/pull_request.json
new file mode 100644
index 00000000000..6c24879b800
--- /dev/null
+++ b/spec/fixtures/api/schemas/entities/github/pull_request.json
@@ -0,0 +1,108 @@
+{
+ "type": "object",
+ "properties": {
+ "title": {
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
+ },
+ "body": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "id": {
+ "type": "integer"
+ },
+ "number": {
+ "type": "integer"
+ },
+ "state": {
+ "type": "string"
+ },
+ "html_url": {
+ "type": "string"
+ },
+ "merged": {
+ "type": "boolean"
+ },
+ "merged_at": {
+ "type": [
+ "date",
+ "null"
+ ]
+ },
+ "closed_at": {
+ "type": [
+ "date",
+ "null"
+ ]
+ },
+ "updated_at": {
+ "type": "date"
+ },
+ "assignee": {
+ "$ref": "user.json"
+ },
+ "author": {
+ "$ref": "user.json"
+ },
+ "head": {
+ "type": "object",
+ "required": [
+ "label",
+ "ref",
+ "repo"
+ ],
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "oneOf": [
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "repository.json"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "base": {
+ "type": "object",
+ "required": [
+ "label",
+ "ref",
+ "repo"
+ ],
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "repo": {
+ "oneOf": [
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "repository.json"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false
+ },
+ "additionalProperties": false
+ }
+} \ No newline at end of file