diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-12 15:09:47 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-12 15:09:47 +0300 |
commit | ef7cfec30c9fab7b9e757877c472ca7ca2eccc2d (patch) | |
tree | f69647e6f64c16fad044d564db65cb51c7a0b63f /spec/fixtures | |
parent | 0e1a6f6a2b28464e6ad151da4dced6d603bd11b0 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/fixtures')
8 files changed, 30 insertions, 13 deletions
diff --git a/spec/fixtures/api/schemas/entities/discussion.json b/spec/fixtures/api/schemas/entities/discussion.json index 9d7ca62435e..21d8efe0b2b 100644 --- a/spec/fixtures/api/schemas/entities/discussion.json +++ b/spec/fixtures/api/schemas/entities/discussion.json @@ -29,8 +29,15 @@ "web_url": { "type": "uri" }, "status_tooltip_html": { "type": ["string", "null"] }, "path": { "type": "string" } - }, - "additionalProperties": false + }, + "required": [ + "id", + "state", + "avatar_url", + "path", + "name", + "username" + ] }, "created_at": { "type": "date" }, "updated_at": { "type": "date" }, diff --git a/spec/fixtures/api/schemas/entities/note_user_entity.json b/spec/fixtures/api/schemas/entities/note_user_entity.json index 9b838054563..4a27d885cdc 100644 --- a/spec/fixtures/api/schemas/entities/note_user_entity.json +++ b/spec/fixtures/api/schemas/entities/note_user_entity.json @@ -16,6 +16,5 @@ "name": { "type": "string" }, "username": { "type": "string" }, "status_tooltip_html": { "$ref": "../types/nullable_string.json" } - }, - "additionalProperties": false + } } diff --git a/spec/fixtures/api/schemas/entities/user.json b/spec/fixtures/api/schemas/entities/user.json index 82d80b75cef..3252a37c82a 100644 --- a/spec/fixtures/api/schemas/entities/user.json +++ b/spec/fixtures/api/schemas/entities/user.json @@ -18,6 +18,5 @@ "name": { "type": "string" }, "username": { "type": "string" }, "status_tooltip_html": { "$ref": "../types/nullable_string.json" } - }, - "additionalProperties": false + } } diff --git a/spec/fixtures/api/schemas/pipeline_schedule.json b/spec/fixtures/api/schemas/pipeline_schedule.json index 690c4a7d4e8..d01801a15fa 100644 --- a/spec/fixtures/api/schemas/pipeline_schedule.json +++ b/spec/fixtures/api/schemas/pipeline_schedule.json @@ -30,7 +30,9 @@ "avatar_url": { "type": "uri" }, "web_url": { "type": "uri" } }, - "additionalProperties": false + "required": [ + "id", "name", "username", "state", "avatar_url", "web_url" + ] }, "variables": { "type": "array", diff --git a/spec/fixtures/api/schemas/public_api/v4/issue.json b/spec/fixtures/api/schemas/public_api/v4/issue.json index bf1b4a06f0b..69ecba8b6f3 100644 --- a/spec/fixtures/api/schemas/public_api/v4/issue.json +++ b/spec/fixtures/api/schemas/public_api/v4/issue.json @@ -71,7 +71,14 @@ "avatar_url": { "type": "uri" }, "web_url": { "type": "uri" } }, - "additionalProperties": false + "required": [ + "id", + "state", + "avatar_url", + "name", + "username", + "web_url" + ] }, "user_notes_count": { "type": "integer" }, "upvotes": { "type": "integer" }, diff --git a/spec/fixtures/api/schemas/public_api/v4/members.json b/spec/fixtures/api/schemas/public_api/v4/members.json index 38ad64ad061..695f00b0040 100644 --- a/spec/fixtures/api/schemas/public_api/v4/members.json +++ b/spec/fixtures/api/schemas/public_api/v4/members.json @@ -15,8 +15,7 @@ }, "required": [ "id", "name", "username", "state", - "web_url", "access_level", "expires_at" - ], - "additionalProperties": false + "web_url", "access_level", "expires_at", "avatar_url" + ] } } diff --git a/spec/fixtures/api/schemas/public_api/v4/notes.json b/spec/fixtures/api/schemas/public_api/v4/notes.json index d15d2e90b05..683dcb19836 100644 --- a/spec/fixtures/api/schemas/public_api/v4/notes.json +++ b/spec/fixtures/api/schemas/public_api/v4/notes.json @@ -17,7 +17,9 @@ "avatar_url": { "type": "uri" }, "web_url": { "type": "uri" } }, - "additionalProperties": false + "required" : [ + "id", "name", "username", "state", "avatar_url", "web_url" + ] }, "commands_changes": { "type": "object", "additionalProperties": true }, "created_at": { "type": "date" }, diff --git a/spec/fixtures/api/schemas/public_api/v4/snippets.json b/spec/fixtures/api/schemas/public_api/v4/snippets.json index ddddd46f5c4..7baa24a6f1f 100644 --- a/spec/fixtures/api/schemas/public_api/v4/snippets.json +++ b/spec/fixtures/api/schemas/public_api/v4/snippets.json @@ -23,7 +23,9 @@ "avatar_url": { "type": "uri" }, "web_url": { "type": "uri" } }, - "additionalProperties": false + "required" : [ + "id", "name", "username", "state", "avatar_url", "web_url" + ] } }, "required": [ |