summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/entities/github/commit.json
diff options
context:
space:
mode:
Diffstat (limited to 'spec/fixtures/api/schemas/entities/github/commit.json')
-rw-r--r--spec/fixtures/api/schemas/entities/github/commit.json61
1 files changed, 61 insertions, 0 deletions
diff --git a/spec/fixtures/api/schemas/entities/github/commit.json b/spec/fixtures/api/schemas/entities/github/commit.json
new file mode 100644
index 00000000000..698d933be07
--- /dev/null
+++ b/spec/fixtures/api/schemas/entities/github/commit.json
@@ -0,0 +1,61 @@
+{
+ "type": "object",
+ "properties" : {
+ "sha": { "type": "string" },
+ "parents": {
+ "type": "array",
+ "properties": {
+ "sha": { "type": "string" }
+ },
+ "additionalProperties": false
+ },
+ "author": {
+ "type": "object",
+ "required": ["login", "email"],
+ "properties" : {
+ "login": { "type": ["string", "null"] },
+ "email": { "type": "string" }
+ },
+ "additionalProperties": false
+ },
+ "committer": {
+ "type": "object",
+ "required": ["login", "email"],
+ "properties" : {
+ "login": { "type": ["string", "null"] },
+ "email": { "type": "string" }
+ },
+ "additionalProperties": false
+ },
+ "commit": {
+ "type": "object",
+ "properties": {
+ "message": { "type": "string" },
+ "author": {
+ "type": "object",
+ "required": ["name", "email", "date", "type"],
+ "properties" : {
+ "name": { "type": "string" },
+ "email": { "type": "string" },
+ "date": { "type": "date" },
+ "type": { "type": "string" }
+ },
+ "additionalProperties": false
+ },
+ "committer": {
+ "type": "object",
+ "required": ["name", "email", "date", "type"],
+ "properties" : {
+ "name": { "type": "string" },
+ "email": { "type": "string" },
+ "date": { "type": "date" },
+ "type": { "type": "string" }
+ },
+ "additionalProperties": false
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ }
+}