diff options
Diffstat (limited to 'spec/fixtures/api')
12 files changed, 242 insertions, 25 deletions
diff --git a/spec/fixtures/api/schemas/entities/codequality_degradation.json b/spec/fixtures/api/schemas/entities/codequality_degradation.json index 6cf20ee8b9e..863b9f0c77e 100644 --- a/spec/fixtures/api/schemas/entities/codequality_degradation.json +++ b/spec/fixtures/api/schemas/entities/codequality_degradation.json @@ -18,7 +18,10 @@ }, "line": { "type": "integer" + }, + "web_url": { + "type": "string" } }, "additionalProperties": false -} +}
\ No newline at end of file diff --git a/spec/fixtures/api/schemas/entities/codequality_reports_comparer.json b/spec/fixtures/api/schemas/entities/codequality_reports_comparer.json index afe82f5e632..05ae036d986 100644 --- a/spec/fixtures/api/schemas/entities/codequality_reports_comparer.json +++ b/spec/fixtures/api/schemas/entities/codequality_reports_comparer.json @@ -1,6 +1,12 @@ { "type": "object", - "required": ["status", "summary", "new_errors", "resolved_errors", "existing_errors"], + "required": [ + "status", + "summary", + "new_errors", + "resolved_errors", + "existing_errors" + ], "properties": { "status": { "type": "string" @@ -18,7 +24,11 @@ "type": "integer" } }, - "required": ["total", "resolved", "errored"] + "required": [ + "total", + "resolved", + "errored" + ] }, "new_errors": { "type": "array", @@ -40,4 +50,4 @@ } }, "additionalProperties": false -} +}
\ No newline at end of file diff --git a/spec/fixtures/api/schemas/entities/protected_ref_access.json b/spec/fixtures/api/schemas/entities/protected_ref_access.json new file mode 100644 index 00000000000..144852e1558 --- /dev/null +++ b/spec/fixtures/api/schemas/entities/protected_ref_access.json @@ -0,0 +1,25 @@ +{ + "type": "object", + "required": [ + "id", + "access_level", + "access_level_description" + ], + "properties": { + "id": { + "type": "integer" + }, + "access_level": { + "type": [ + "integer", + "null" + ] + }, + "access_level_description": { + "type": [ + "string", + "null" + ] + } + } +} diff --git a/spec/fixtures/api/schemas/graphql/packages/package_details.json b/spec/fixtures/api/schemas/graphql/packages/package_details.json index 33eb67a0280..1f3de0e0ff5 100644 --- a/spec/fixtures/api/schemas/graphql/packages/package_details.json +++ b/spec/fixtures/api/schemas/graphql/packages/package_details.json @@ -14,7 +14,8 @@ "versions", "status", "canDestroy", - "lastDownloadedAt" + "lastDownloadedAt", + "_links" ], "properties": { "id": { @@ -177,6 +178,15 @@ }, "lastDownloadedAt": { "type": ["string", "null"] + }, + "_links": { + "type": "object", + "additionalProperties": false, + "properties": { + "webPath": { + "type": ["string", "null"] + } + } } } } diff --git a/spec/fixtures/api/schemas/ml/run.json b/spec/fixtures/api/schemas/ml/run.json index 2418f44b21f..48d0ed25ce4 100644 --- a/spec/fixtures/api/schemas/ml/run.json +++ b/spec/fixtures/api/schemas/ml/run.json @@ -27,15 +27,43 @@ "end_time" ], "properties": { - "run_id": { "type": "string" }, - "run_uuid": { "type": "string" }, - "experiment_id": { "type": "string" }, - "artifact_location": { "type": "string" }, - "start_time": { "type": "integer" }, - "end_time": { "type": "integer" }, + "run_id": { + "type": "string" + }, + "run_uuid": { + "type": "string" + }, + "experiment_id": { + "type": "string" + }, + "artifact_uri": { + "type": "string" + }, + "start_time": { + "type": "integer" + }, + "end_time": { + "type": "integer" + }, "user_id": "", - "status": { "type": { "enum" : ["RUNNING", "SCHEDULED", "FINISHED", "FAILED", "KILLED"] } }, - "lifecycle_stage": { "type": { "enum" : ["active"] } } + "status": { + "type": { + "enum": [ + "RUNNING", + "SCHEDULED", + "FINISHED", + "FAILED", + "KILLED" + ] + } + }, + "lifecycle_stage": { + "type": { + "enum": [ + "active" + ] + } + } } }, "data": { @@ -44,4 +72,4 @@ } } } -} +}
\ No newline at end of file diff --git a/spec/fixtures/api/schemas/pipeline_schedule_variable.json b/spec/fixtures/api/schemas/pipeline_schedule_variable.json index 022d36cb88c..83eed11f458 100644 --- a/spec/fixtures/api/schemas/pipeline_schedule_variable.json +++ b/spec/fixtures/api/schemas/pipeline_schedule_variable.json @@ -6,9 +6,18 @@ "variable_type" ], "properties": { - "key": { "type": "string" }, - "value": { "type": "string" }, - "variable_type": { "type": "string" } + "key": { + "type": "string" + }, + "value": { + "type": "string" + }, + "variable_type": { + "type": "string" + }, + "raw": { + "type": "boolean" + } }, "additionalProperties": false -} +}
\ No newline at end of file diff --git a/spec/fixtures/api/schemas/project_mirror.json b/spec/fixtures/api/schemas/project_mirror.json new file mode 100644 index 00000000000..0f626c04f24 --- /dev/null +++ b/spec/fixtures/api/schemas/project_mirror.json @@ -0,0 +1,48 @@ +{ + "type": "object", + "required": [ + "id", + "url", + "update_status", + "last_update_at", + "last_update_started_at", + "last_successful_update_at", + "last_error" + ], + "properties": { + "id": { + "type": "integer" + }, + "url": { + "type": "string" + }, + "update_status": { + "type": "string" + }, + "last_update_at": { + "type": [ + "string", + "null" + ] + }, + "last_update_started_at": { + "type": [ + "string", + "null" + ] + }, + "last_successful_update_at": { + "type": [ + "string", + "null" + ] + }, + "last_error": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false +}
\ No newline at end of file diff --git a/spec/fixtures/api/schemas/protected_branch.json b/spec/fixtures/api/schemas/protected_branch.json new file mode 100644 index 00000000000..4ad5dbe2313 --- /dev/null +++ b/spec/fixtures/api/schemas/protected_branch.json @@ -0,0 +1,33 @@ +{ + "type": "object", + "required": [ + "id", + "name", + "push_access_levels", + "merge_access_levels", + "allow_force_push" + ], + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "push_access_levels": { + "type": "array", + "items": { + "$ref": "entities/protected_ref_access.json" + } + }, + "merge_access_levels": { + "type": "array", + "items": { + "$ref": "entities/protected_ref_access.json" + } + }, + "allow_force_push": { + "type": "boolean" + } + } +} diff --git a/spec/fixtures/api/schemas/protected_branches.json b/spec/fixtures/api/schemas/protected_branches.json new file mode 100644 index 00000000000..c87b3b153a9 --- /dev/null +++ b/spec/fixtures/api/schemas/protected_branches.json @@ -0,0 +1,6 @@ +{ + "type": "array", + "items": { + "$ref": "protected_branch.json" + } +} diff --git a/spec/fixtures/api/schemas/protected_tag.json b/spec/fixtures/api/schemas/protected_tag.json new file mode 100644 index 00000000000..c5aaf0f0cba --- /dev/null +++ b/spec/fixtures/api/schemas/protected_tag.json @@ -0,0 +1,19 @@ +{ + "type": "object", + "required": [ + "name", + "create_access_levels" + ], + "properties": { + "name": { + "type": "string" + }, + "create_access_levels": { + "type": "array", + "items": { + "$ref": "entities/protected_ref_access.json" + } + }, + "additionalProperties": false + } +} diff --git a/spec/fixtures/api/schemas/protected_tags.json b/spec/fixtures/api/schemas/protected_tags.json new file mode 100644 index 00000000000..731d0368a09 --- /dev/null +++ b/spec/fixtures/api/schemas/protected_tags.json @@ -0,0 +1,6 @@ +{ + "type": "array", + "items": { + "$ref": "protected_tag.json" + } +} diff --git a/spec/fixtures/api/schemas/public_api/v4/metadata.json b/spec/fixtures/api/schemas/public_api/v4/metadata.json index fd219b95df8..f5a6aa86890 100644 --- a/spec/fixtures/api/schemas/public_api/v4/metadata.json +++ b/spec/fixtures/api/schemas/public_api/v4/metadata.json @@ -3,11 +3,16 @@ "required": [ "version", "revision", - "kas" + "kas", + "enterprise" ], "properties": { - "version": { "type": "string" }, - "revision": { "type": "string" }, + "version": { + "type": "string" + }, + "revision": { + "type": "string" + }, "kas": { "type": "object", "required": [ @@ -16,11 +21,26 @@ "version" ], "properties": { - "enabled": { "type": "boolean" }, - "externalUrl": { "type": ["string", "null"] }, - "version": { "type": ["string", "null"] } + "enabled": { + "type": "boolean" + }, + "externalUrl": { + "type": [ + "string", + "null" + ] + }, + "version": { + "type": [ + "string", + "null" + ] + } } + }, + "enterprise": { + "type": "boolean" } }, "additionalProperties": false -} +}
\ No newline at end of file |