diff options
Diffstat (limited to 'spec/fixtures/api/schemas/public_api')
9 files changed, 73 insertions, 9 deletions
diff --git a/spec/fixtures/api/schemas/public_api/v4/branch.json b/spec/fixtures/api/schemas/public_api/v4/branch.json index 3b0f010bc4f..0073a6d89fc 100644 --- a/spec/fixtures/api/schemas/public_api/v4/branch.json +++ b/spec/fixtures/api/schemas/public_api/v4/branch.json @@ -7,7 +7,8 @@ "protected", "default", "developers_can_push", - "developers_can_merge" + "developers_can_merge", + "web_url" ], "properties" : { "name": { "type": "string" }, @@ -17,7 +18,8 @@ "default": { "type": "boolean" }, "developers_can_push": { "type": "boolean" }, "developers_can_merge": { "type": "boolean" }, - "can_push": { "type": "boolean" } + "can_push": { "type": "boolean" }, + "web_url": { "type": "uri" } }, "additionalProperties": false } diff --git a/spec/fixtures/api/schemas/public_api/v4/freeze_period.json b/spec/fixtures/api/schemas/public_api/v4/freeze_period.json new file mode 100644 index 00000000000..b0187aee647 --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/freeze_period.json @@ -0,0 +1,20 @@ +{ + "type": "object", + "required": [ + "id", + "freeze_start", + "freeze_end", + "cron_timezone", + "created_at", + "updated_at" + ], + "properties": { + "id": { "type": "integer" }, + "freeze_start": { "type": "string" }, + "freeze_end": { "type": "string"}, + "cron_timezone": { "type": "string" }, + "created_at": { "type": "string" }, + "updated_at": { "type": "string" } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/public_api/v4/freeze_periods.json b/spec/fixtures/api/schemas/public_api/v4/freeze_periods.json new file mode 100644 index 00000000000..1e1c29a3b64 --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/freeze_periods.json @@ -0,0 +1,5 @@ +{ + "type": "array", + "items": { "$ref": "freeze_period.json" } +} + 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/project_repository_storage_move.json b/spec/fixtures/api/schemas/public_api/v4/project_repository_storage_move.json new file mode 100644 index 00000000000..6f8a2ff58e5 --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/project_repository_storage_move.json @@ -0,0 +1,20 @@ +{ + "type": "object", + "required": [ + "id", + "created_at", + "state", + "source_storage_name", + "destination_storage_name", + "project" + ], + "properties" : { + "id": { "type": "integer" }, + "created_at": { "type": "date" }, + "state": { "type": "string" }, + "source_storage_name": { "type": "string" }, + "destination_storage_name": { "type": "string" }, + "project": { "type": "object" } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/public_api/v4/project_repository_storage_moves.json b/spec/fixtures/api/schemas/public_api/v4/project_repository_storage_moves.json new file mode 100644 index 00000000000..b2de185fbfe --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/project_repository_storage_moves.json @@ -0,0 +1,6 @@ +{ + "type": "array", + "items": { + "$ref": "./project_repository_storage_move.json" + } +} diff --git a/spec/fixtures/api/schemas/public_api/v4/snippets.json b/spec/fixtures/api/schemas/public_api/v4/snippets.json index d13d703e063..7baa24a6f1f 100644 --- a/spec/fixtures/api/schemas/public_api/v4/snippets.json +++ b/spec/fixtures/api/schemas/public_api/v4/snippets.json @@ -10,6 +10,7 @@ "description": { "type": ["string", "null"] }, "visibility": { "type": "string" }, "web_url": { "type": "string" }, + "raw_url": { "type": "string" }, "created_at": { "type": "date" }, "updated_at": { "type": "date" }, "author": { @@ -22,12 +23,14 @@ "avatar_url": { "type": "uri" }, "web_url": { "type": "uri" } }, - "additionalProperties": false + "required" : [ + "id", "name", "username", "state", "avatar_url", "web_url" + ] } }, "required": [ "id", "title", "file_name", "description", "web_url", - "created_at", "updated_at", "author" + "created_at", "updated_at", "author", "raw_url" ], "additionalProperties": false } |