diff options
Diffstat (limited to 'spec/fixtures/api/schemas/entities')
5 files changed, 100 insertions, 1 deletions
diff --git a/spec/fixtures/api/schemas/entities/admin_users_data_attributes_paths.json b/spec/fixtures/api/schemas/entities/admin_users_data_attributes_paths.json new file mode 100644 index 00000000000..eab8b626876 --- /dev/null +++ b/spec/fixtures/api/schemas/entities/admin_users_data_attributes_paths.json @@ -0,0 +1,30 @@ +{ + "type": "object", + "properties": { + "edit": { "type": "string" }, + "approve": { "type": "string" }, + "reject": { "type": "string" }, + "unblock": { "type": "string" }, + "block": { "type": "string" }, + "deactivate": { "type": "string" }, + "activate": { "type": "string" }, + "unlock": { "type": "string" }, + "delete": { "type": "string" }, + "delete_with_contributions": { "type": "string" }, + "admin_user": { "type": "string" } + }, + "required": [ + "edit", + "approve", + "reject", + "unblock", + "block", + "deactivate", + "activate", + "unlock", + "delete", + "delete_with_contributions", + "admin_user" + ], + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/entities/codequality_degradation.json b/spec/fixtures/api/schemas/entities/codequality_degradation.json new file mode 100644 index 00000000000..6cf20ee8b9e --- /dev/null +++ b/spec/fixtures/api/schemas/entities/codequality_degradation.json @@ -0,0 +1,24 @@ +{ + "type": "object", + "required": [ + "description", + "severity", + "file_path", + "line" + ], + "properties": { + "description": { + "type": "string" + }, + "severity": { + "type": "string" + }, + "file_path": { + "type": "string" + }, + "line": { + "type": "integer" + } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/entities/codequality_reports_comparer.json b/spec/fixtures/api/schemas/entities/codequality_reports_comparer.json new file mode 100644 index 00000000000..afe82f5e632 --- /dev/null +++ b/spec/fixtures/api/schemas/entities/codequality_reports_comparer.json @@ -0,0 +1,43 @@ +{ + "type": "object", + "required": ["status", "summary", "new_errors", "resolved_errors", "existing_errors"], + "properties": { + "status": { + "type": "string" + }, + "summary": { + "type": "object", + "properties": { + "total": { + "type": "integer" + }, + "resolved": { + "type": "integer" + }, + "errored": { + "type": "integer" + } + }, + "required": ["total", "resolved", "errored"] + }, + "new_errors": { + "type": "array", + "items": { + "$ref": "codequality_degradation.json" + } + }, + "resolved_errors": { + "type": "array", + "items": { + "$ref": "codequality_degradation.json" + } + }, + "existing_errors": { + "type": "array", + "items": { + "$ref": "codequality_degradation.json" + } + } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/entities/merge_request_widget.json b/spec/fixtures/api/schemas/entities/merge_request_widget.json index e2df7952d8f..c90f7af5892 100644 --- a/spec/fixtures/api/schemas/entities/merge_request_widget.json +++ b/spec/fixtures/api/schemas/entities/merge_request_widget.json @@ -14,6 +14,7 @@ "merge_request_cached_widget_path": { "type": "string" }, "commit_change_content_path": { "type": "string" }, "conflicts_docs_path": { "type": ["string", "null"] }, + "reviewing_and_managing_merge_requests_docs_path": { "type": ["string", "null"] }, "merge_request_pipelines_docs_path": { "type": ["string", "null"] }, "ci_environments_status_path": { "type": "string" }, "issues_links": { diff --git a/spec/fixtures/api/schemas/entities/note_user_entity.json b/spec/fixtures/api/schemas/entities/note_user_entity.json index 4a27d885cdc..e2bbaad7201 100644 --- a/spec/fixtures/api/schemas/entities/note_user_entity.json +++ b/spec/fixtures/api/schemas/entities/note_user_entity.json @@ -15,6 +15,7 @@ "path": { "type": "string" }, "name": { "type": "string" }, "username": { "type": "string" }, - "status_tooltip_html": { "$ref": "../types/nullable_string.json" } + "status_tooltip_html": { "$ref": "../types/nullable_string.json" }, + "show_status": { "type": "boolean" } } } |