diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-20 15:26:25 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-20 15:26:25 +0300 |
commit | a09983ae35713f5a2bbb100981116d31ce99826e (patch) | |
tree | 2ee2af7bd104d57086db360a7e6d8c9d5d43667a /spec/fixtures/api | |
parent | 18c5ab32b738c0b6ecb4d0df3994000482f34bd8 (diff) |
Add latest changes from gitlab-org/gitlab@13-2-stable-ee
Diffstat (limited to 'spec/fixtures/api')
28 files changed, 584 insertions, 4 deletions
diff --git a/spec/fixtures/api/graphql/introspection.graphql b/spec/fixtures/api/graphql/introspection.graphql index 7b712068fcd..6b6de2efbaf 100644 --- a/spec/fixtures/api/graphql/introspection.graphql +++ b/spec/fixtures/api/graphql/introspection.graphql @@ -1,9 +1,15 @@ # pulled from GraphiQL query query IntrospectionQuery { __schema { - queryType { name } - mutationType { name } - subscriptionType { name } + queryType { + name + } + mutationType { + name + } + subscriptionType { + name + } types { ...FullType } @@ -54,7 +60,9 @@ fragment FullType on __Type { fragment InputValue on __InputValue { name description - type { ...TypeRef } + type { + ...TypeRef + } defaultValue } diff --git a/spec/fixtures/api/schemas/entities/dag_job.json b/spec/fixtures/api/schemas/entities/dag_job.json new file mode 100644 index 00000000000..171ac23ca06 --- /dev/null +++ b/spec/fixtures/api/schemas/entities/dag_job.json @@ -0,0 +1,10 @@ +{ + "type": "object", + "required": ["name", "scheduling_type"], + "properties": { + "name": { "type": "string" }, + "scheduling_type": { "type": ["string", null] }, + "needs": { "type": "array" } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/entities/dag_job_group.json b/spec/fixtures/api/schemas/entities/dag_job_group.json new file mode 100644 index 00000000000..69a4e69fc63 --- /dev/null +++ b/spec/fixtures/api/schemas/entities/dag_job_group.json @@ -0,0 +1,13 @@ +{ + "type": "object", + "required": ["name", "size", "jobs"], + "properties": { + "name": { "type": "string" }, + "size": { "type": "integer" }, + "jobs": { + "type": "array", + "items": { "$ref": "dag_job.json" } + } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/entities/dag_pipeline.json b/spec/fixtures/api/schemas/entities/dag_pipeline.json new file mode 100644 index 00000000000..a661577d040 --- /dev/null +++ b/spec/fixtures/api/schemas/entities/dag_pipeline.json @@ -0,0 +1,11 @@ +{ + "type": "object", + "required": ["stages"], + "properties": { + "stages": { + "type": "array", + "items": { "$ref": "dag_stage.json" } + } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/entities/dag_stage.json b/spec/fixtures/api/schemas/entities/dag_stage.json new file mode 100644 index 00000000000..6a7b1424ec5 --- /dev/null +++ b/spec/fixtures/api/schemas/entities/dag_stage.json @@ -0,0 +1,11 @@ +{ + "type": "object", + "required": ["name", "groups"], + "properties": { + "name": { "type": "string" }, + "groups": { + "type": "array", + "items": { "$ref": "dag_job_group.json" } + } + } +} diff --git a/spec/fixtures/api/schemas/evidences/build_artifact.json b/spec/fixtures/api/schemas/evidences/build_artifact.json new file mode 100644 index 00000000000..850fb8c45a8 --- /dev/null +++ b/spec/fixtures/api/schemas/evidences/build_artifact.json @@ -0,0 +1,10 @@ +{ + "type": "object", + "required": [ + "url" + ], + "properties": { + "url": { "type": "string" } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/evidences/release.json b/spec/fixtures/api/schemas/evidences/release.json index 37eb9a9b5c0..529abfe490e 100644 --- a/spec/fixtures/api/schemas/evidences/release.json +++ b/spec/fixtures/api/schemas/evidences/release.json @@ -19,6 +19,10 @@ "milestones": { "type": "array", "items": { "$ref": "milestone.json" } + }, + "report_artifacts": { + "type": "array", + "items": { "$ref": "build_artifact.json" } } }, "additionalProperties": false diff --git a/spec/fixtures/api/schemas/public_api/v4/packages/composer/index.json b/spec/fixtures/api/schemas/public_api/v4/packages/composer/index.json new file mode 100644 index 00000000000..2245b39cabe --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/packages/composer/index.json @@ -0,0 +1,29 @@ +{ + "type": "object", + "required": ["packages", "provider-includes", "providers-url"], + "properties": { + "packages": { + "type": "array", + "items": { "type": "integer" } + }, + "providers-url": { + "type": "string" + }, + "provider-includes": { + "type": "object", + "required": ["p/%hash%.json"], + "properties": { + "p/%hash%.json": { + "type": "object", + "required": ["sha256"], + "properties": { + "sha256": { + "type": "string" + } + } + } + } + } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/public_api/v4/packages/composer/package.json b/spec/fixtures/api/schemas/public_api/v4/packages/composer/package.json new file mode 100644 index 00000000000..324a8a4e00c --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/packages/composer/package.json @@ -0,0 +1,65 @@ +{ + "type": "object", + "required": [ + "packages" + ], + "properties": { + "packages": { + "type": "object", + "propertyNames": { + "pattern": "^[A-Za-z_]+" + }, + "patternProperties": { + "^[A-Za-z_]+": { + "type": "object", + "propertyNames": { + "pattern": "^[A-Za-z_0-9.]+" + }, + "patternProperties": { + "^[A-Za-z_0-9.]+": { + "type": "object", + "required": [ + "dist", + "uid", + "version" + ], + "properties": { + "uid": { + "type": "integer" + }, + "version": { + "type": "string" + }, + "dist": { + "type": "object", + "required": [ + "type", + "url", + "reference", + "shasum" + ], + "properties": { + "type": { + "type": "string" + }, + "url": { + "type": "string" + }, + "reference": { + "type": "string" + }, + "shasum": { + "type": "string" + } + } + } + } + } + } + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/public_api/v4/packages/composer/provider.json b/spec/fixtures/api/schemas/public_api/v4/packages/composer/provider.json new file mode 100644 index 00000000000..5335fa9ad64 --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/packages/composer/provider.json @@ -0,0 +1,25 @@ +{ + "type": "object", + "required": ["providers"], + "properties": { + "providers": { + "type": "object", + "propertyNames": { + "pattern": "^[A-Za-z_]+" + }, + "patternProperties": { + "^[A-Za-z_]+": { + "type": "object", + "required": ["sha256"], + "properties": { + "sha256": { + "type": "string" + } + } + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/public_api/v4/packages/group_package.json b/spec/fixtures/api/schemas/public_api/v4/packages/group_package.json new file mode 100644 index 00000000000..f18e314a287 --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/packages/group_package.json @@ -0,0 +1,33 @@ +{ + "type": "object", + "required": ["name", "version", "package_type", "_links", "project_id", "project_path"], + "properties": { + "name": { + "type": "string" + }, + "version": { + "type": "string" + }, + "package_type": { + "type": "string" + }, + "_links": { + "type": "object", + "required": ["web_path"], + "properties": { + "details": { + "type": "string" + } + } + }, + "created_at": { + "type": "string" + }, + "project_id": { + "type": "integer" + }, + "project_path": { + "type": "string" + } + } +} diff --git a/spec/fixtures/api/schemas/public_api/v4/packages/group_packages.json b/spec/fixtures/api/schemas/public_api/v4/packages/group_packages.json new file mode 100644 index 00000000000..3169bbc8f25 --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/packages/group_packages.json @@ -0,0 +1,4 @@ +{ + "type": "array", + "items": { "$ref": "./group_package.json" } +} diff --git a/spec/fixtures/api/schemas/public_api/v4/packages/npm_package.json b/spec/fixtures/api/schemas/public_api/v4/packages/npm_package.json new file mode 100644 index 00000000000..d7e8a872abe --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/packages/npm_package.json @@ -0,0 +1,8 @@ +{ + "type": "object", + "required" : ["name", "versions"], + "properties" : { + "name": { "type": "string" }, + "versions": { "type": "object" } + } +} diff --git a/spec/fixtures/api/schemas/public_api/v4/packages/npm_package_tags.json b/spec/fixtures/api/schemas/public_api/v4/packages/npm_package_tags.json new file mode 100644 index 00000000000..db64fe1de23 --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/packages/npm_package_tags.json @@ -0,0 +1,7 @@ +{ + "type": "object", + "properties" : { + "$tag": { "type": "string" }, + "$version": { "type": "string" } + } +} diff --git a/spec/fixtures/api/schemas/public_api/v4/packages/npm_package_version.json b/spec/fixtures/api/schemas/public_api/v4/packages/npm_package_version.json new file mode 100644 index 00000000000..3e74dc0a1c2 --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/packages/npm_package_version.json @@ -0,0 +1,46 @@ +{ + "type": "object", + "required": ["name", "version", "dist"], + "properties" : { + "name": { "type": "string" }, + "version": { "type": "string" }, + "dist": { + "type": "object", + "required": ["shasum", "tarball"], + "properties" : { + "shasum": { "type": "string" }, + "tarball": { "type": "string" } + } + }, + "dependencies": { + "type": "object", + "patternProperties": { + ".{1,}": { "type": "string" } + } + }, + "devDependencies": { + "type": "object", + "patternProperties": { + ".{1,}": { "type": "string" } + } + }, + "bundleDependencies": { + "type": "object", + "patternProperties": { + ".{1,}": { "type": "string" } + } + }, + "peerDependencies": { + "type": "object", + "patternProperties": { + ".{1,}": { "type": "string" } + } + }, + "deprecated": { + "type": "object", + "patternProperties": { + ".{1,}": { "type": "string" } + } + } + } +} diff --git a/spec/fixtures/api/schemas/public_api/v4/packages/nuget/dependency_group.json b/spec/fixtures/api/schemas/public_api/v4/packages/nuget/dependency_group.json new file mode 100644 index 00000000000..87dc2794b61 --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/packages/nuget/dependency_group.json @@ -0,0 +1,22 @@ +{ + "type": "object", + "required": ["@id", "@type", "dependencies"], + "properties": { + "@id": { "type": "string" }, + "@type": { "const": "PackageDependencyGroup" }, + "targetFramework": { "type": "string" }, + "dependencies": { + "type": "array", + "items": { + "type": "object", + "required": ["@id", "@type", "id", "range"], + "properties": { + "@id": { "type": "string" }, + "@type": { "const": "PackageDependency" }, + "id": { "type": "string" }, + "range": { "type": "string" } + } + } + } + } +} diff --git a/spec/fixtures/api/schemas/public_api/v4/packages/nuget/download_versions.json b/spec/fixtures/api/schemas/public_api/v4/packages/nuget/download_versions.json new file mode 100644 index 00000000000..ab40dfbbc4c --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/packages/nuget/download_versions.json @@ -0,0 +1,10 @@ +{ + "type": "object", + "required": ["versions"], + "properties": { + "versions": { + "type": "array", + "items": { "type": "string" } + } + } +} diff --git a/spec/fixtures/api/schemas/public_api/v4/packages/nuget/package_metadata.json b/spec/fixtures/api/schemas/public_api/v4/packages/nuget/package_metadata.json new file mode 100644 index 00000000000..1244cbe474e --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/packages/nuget/package_metadata.json @@ -0,0 +1,28 @@ +{ + "type": "object", + "required": ["@id", "packageContent", "catalogEntry"], + "properties": { + "@id": { "type": "string" }, + "packageContent": { "type": "string" }, + "catalogEntry": { + "type": "object", + "required": ["@id", "authors", "dependencyGroups", "id", "packageContent", "summary", "version"], + "properties": { + "@id": { "type": "string" }, + "authors": { "const": "" }, + "id": { "type": "string" }, + "packageContent": { "type": "string" }, + "summary": { "const": "" }, + "tags": { "type": "string" }, + "projectUrl": { "type": "string" }, + "licenseUrl": { "type": "string" }, + "iconUrl": { "type": "string" }, + "version": { "type": "string" }, + "dependencyGroups": { + "type": "array", + "items": { "$ref": "./dependency_group.json" } + } + } + } + } +} diff --git a/spec/fixtures/api/schemas/public_api/v4/packages/nuget/packages_metadata.json b/spec/fixtures/api/schemas/public_api/v4/packages/nuget/packages_metadata.json new file mode 100644 index 00000000000..724df5a437d --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/packages/nuget/packages_metadata.json @@ -0,0 +1,54 @@ +{ + "type": "object", + "required": ["count", "items"], + "properties": { + "count": { "const": 0 }, + "items": { + "type": "array", + "items": { + "type": "object", + "required": ["lower", "upper", "count", "items"], + "properties": { + "lower": { "type": "string" }, + "upper": { "type": "string" }, + "count": { "type": "integer" }, + "items": { + "type": "array", + "items": { + "type": "object", + "required": ["@id", "packageContent", "catalogEntry"], + "properties": { + "@id": { "type": "string" }, + "packageContent": { "type": "string" }, + "catalogEntry": { + "type": "object", + "required": ["@id", "authors", "dependencyGroups", "id", "packageContent", "summary", "version"], + "properties": { + "@id": { "type": "string" }, + "authors": { "const": "" }, + "id": { "type": "string" }, + "packageContent": { "type": "string" }, + "summary": { "const": "" }, + "tags": { "type": "string" }, + "projectUrl": { "type": "string" }, + "licenseUrl": { "type": "string" }, + "iconUrl": { "type": "string" }, + "version": { "type": "string" }, + "dependencyGroups": { + "type": "array", + "items": { "$ref": "./dependency_group.json" } + } + } + } + } + } + } + } + } + } + } +} + + + + diff --git a/spec/fixtures/api/schemas/public_api/v4/packages/nuget/search.json b/spec/fixtures/api/schemas/public_api/v4/packages/nuget/search.json new file mode 100644 index 00000000000..73d0927e24c --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/packages/nuget/search.json @@ -0,0 +1,39 @@ +{ + "type": "object", + "required": ["totalHits", "data"], + "properties": { + "totalHits": { "type": "integer" }, + "data": { + "type": "array", + "items": { + "type": "object", + "required": ["@type", "authors", "id", "summary", "title", "totalDownloads", "verified", "versions"], + "properties": { + "@type": { "const": "Package" }, + "authors": { "const": "" }, + "id": { "type": "string" }, + "summary": { "const": "" }, + "title": { "type": "string" }, + "totalDownloads": { "const": 0 }, + "verified": { "const": true }, + "tags": { "type": "string" }, + "projectUrl": { "type": "string" }, + "licenseUrl": { "type": "string" }, + "iconUrl": { "type": "string" }, + "versions": { + "type": "array", + "items": { + "type": "object", + "required": ["@id", "version", "downloads"], + "properties": { + "@id": { "type": "string" }, + "version": { "type": "string" }, + "downloads": { "const": 0 } + } + } + } + } + } + } + } +} diff --git a/spec/fixtures/api/schemas/public_api/v4/packages/nuget/service_index.json b/spec/fixtures/api/schemas/public_api/v4/packages/nuget/service_index.json new file mode 100644 index 00000000000..405018f8c37 --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/packages/nuget/service_index.json @@ -0,0 +1,19 @@ +{ + "type": "object", + "required": ["version", "resources"], + "properties": { + "version": { "const": "3.0.0" }, + "resources": { + "type": "array", + "items": { + "type": "object", + "required": ["@id", "@type", "comment"], + "properties": { + "@id": { "type": "string" }, + "@type": { "type": "string" }, + "comment": { "type": "string" } + } + } + } + } +} diff --git a/spec/fixtures/api/schemas/public_api/v4/packages/package.json b/spec/fixtures/api/schemas/public_api/v4/packages/package.json new file mode 100644 index 00000000000..757e5fd26b6 --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/packages/package.json @@ -0,0 +1,41 @@ +{ + "type": "object", + "required": [ + "name", + "version", + "package_type", + "_links", + "versions" + ], + "properties": { + "name": { + "type": "string" + }, + "version": { + "type": "string" + }, + "package_type": { + "type": "string" + }, + "_links": { + "type": "object", + "required": [ + "web_path" + ], + "properties": { + "details": { + "type": "string" + } + } + }, + "created_at": { + "type": "string" + }, + "versions": { + "type": "array", + "items": { + "$ref": "package_version.json" + } + } + } +} diff --git a/spec/fixtures/api/schemas/public_api/v4/packages/package_files.json b/spec/fixtures/api/schemas/public_api/v4/packages/package_files.json new file mode 100644 index 00000000000..f057adba65c --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/packages/package_files.json @@ -0,0 +1,13 @@ +{ + "type": "array", + "items": { + "type": "object", + "required" : ["id", "package_id", "file_name"], + "properties" : { + "id": { "type": "integer" }, + "package_id": { "type": "integer" }, + "file_name": { "type": "string" }, + "file_sha1": { "type": "string" } + } + } +} diff --git a/spec/fixtures/api/schemas/public_api/v4/packages/package_version.json b/spec/fixtures/api/schemas/public_api/v4/packages/package_version.json new file mode 100644 index 00000000000..72f2a2121ad --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/packages/package_version.json @@ -0,0 +1,19 @@ +{ + "type": "object", + "required": [ + "version", + "created_at", + "pipeline" + ], + "properties": { + "version": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "pipeline": { + "$ref": "../pipeline.json" + } + } +} diff --git a/spec/fixtures/api/schemas/public_api/v4/packages/package_with_build.json b/spec/fixtures/api/schemas/public_api/v4/packages/package_with_build.json new file mode 100644 index 00000000000..de3ef94138e --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/packages/package_with_build.json @@ -0,0 +1,10 @@ +{ + "type": "object", + "required": ["name", "version", "package_type", "pipeline"], + "properties": { + "name": { "type": "string" }, + "version": { "type": "string" }, + "package_type": { "type": "string" }, + "pipeline": { "$ref": "../pipeline.json" } + } +} diff --git a/spec/fixtures/api/schemas/public_api/v4/packages/packages.json b/spec/fixtures/api/schemas/public_api/v4/packages/packages.json new file mode 100644 index 00000000000..66364da4fdb --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/packages/packages.json @@ -0,0 +1,4 @@ +{ + "type": "array", + "items": { "$ref": "./package.json" } +} diff --git a/spec/fixtures/api/schemas/public_api/v4/pipeline.json b/spec/fixtures/api/schemas/public_api/v4/pipeline.json new file mode 100644 index 00000000000..f83844a115d --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/pipeline.json @@ -0,0 +1,27 @@ +{ + "type": "object", + "required": ["id", "sha", "ref", "status", "created_at", "updated_at", "web_url"], + "properties": { + "id": { + "type": "integer" + }, + "sha": { + "type": "string" + }, + "ref": { + "type": "string" + }, + "status": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "web_url": { + "type": "string" + } + } +} diff --git a/spec/fixtures/api/schemas/public_api/v4/snippets.json b/spec/fixtures/api/schemas/public_api/v4/snippets.json index 7baa24a6f1f..de658e01657 100644 --- a/spec/fixtures/api/schemas/public_api/v4/snippets.json +++ b/spec/fixtures/api/schemas/public_api/v4/snippets.json @@ -7,6 +7,16 @@ "project_id": { "type": ["integer", "null"] }, "title": { "type": "string" }, "file_name": { "type": ["string", "null"] }, + "files" : { + "type": "array", + "items": { + "type": "object", + "properties": { + "path": { "type": "string" }, + "raw_url": { "type": "string" } + } + } + }, "description": { "type": ["string", "null"] }, "visibility": { "type": "string" }, "web_url": { "type": "string" }, |