summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/graphql/packages
diff options
context:
space:
mode:
Diffstat (limited to 'spec/fixtures/api/schemas/graphql/packages')
-rw-r--r--spec/fixtures/api/schemas/graphql/packages/package_conan_metadata.json37
-rw-r--r--spec/fixtures/api/schemas/graphql/packages/package_details.json36
2 files changed, 70 insertions, 3 deletions
diff --git a/spec/fixtures/api/schemas/graphql/packages/package_conan_metadata.json b/spec/fixtures/api/schemas/graphql/packages/package_conan_metadata.json
new file mode 100644
index 00000000000..31bb861ced5
--- /dev/null
+++ b/spec/fixtures/api/schemas/graphql/packages/package_conan_metadata.json
@@ -0,0 +1,37 @@
+{
+ "type": "object",
+ "additionalProperties": false,
+ "required": [
+ "id",
+ "createdAt",
+ "updatedAt",
+ "packageUsername",
+ "packageChannel",
+ "recipe",
+ "recipePath",
+ "packageName"
+ ],
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "created_at": {
+ "type": "string"
+ },
+ "updated_at": {
+ "type": "string"
+ },
+ "package_username": {
+ "type": "string"
+ },
+ "package_channel": {
+ "type": "string"
+ },
+ "recipe": {
+ "type": "string"
+ },
+ "recipe_path": {
+ "type": "string"
+ }
+ }
+}
diff --git a/spec/fixtures/api/schemas/graphql/packages/package_details.json b/spec/fixtures/api/schemas/graphql/packages/package_details.json
index d2e2e65db54..87b173eefc7 100644
--- a/spec/fixtures/api/schemas/graphql/packages/package_details.json
+++ b/spec/fixtures/api/schemas/graphql/packages/package_details.json
@@ -2,8 +2,17 @@
"type": "object",
"additionalProperties": false,
"required": [
- "id", "name", "createdAt", "updatedAt", "version", "packageType",
- "project", "tags", "pipelines", "versions", "metadata"
+ "id",
+ "name",
+ "createdAt",
+ "updatedAt",
+ "version",
+ "packageType",
+ "project",
+ "tags",
+ "pipelines",
+ "versions",
+ "metadata"
],
"properties": {
"id": {
@@ -23,7 +32,18 @@
},
"packageType": {
"type": ["string"],
- "enum": ["MAVEN", "NPM", "CONAN", "NUGET", "PYPI", "COMPOSER", "GENERIC", "GOLANG", "DEBIAN"]
+ "enum": [
+ "MAVEN",
+ "NPM",
+ "CONAN",
+ "NUGET",
+ "PYPI",
+ "COMPOSER",
+ "GENERIC",
+ "GOLANG",
+ "RUBYGEMS",
+ "DEBIAN"
+ ]
},
"tags": {
"type": "object",
@@ -59,8 +79,18 @@
"metadata": {
"anyOf": [
{ "$ref": "./package_composer_metadata.json" },
+ { "$ref": "./package_conan_metadata.json" },
{ "type": "null" }
]
+ },
+ "packageFiles": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "pageInfo": { "type": "object" },
+ "edges": { "type": "array" },
+ "nodes": { "type": "array" }
+ }
}
}
}