debian-mirror-gitlab/spec/fixtures/api/schemas/graphql/packages/package_details.json

105 lines
2.2 KiB
JSON
Raw Normal View History

2021-03-08 18:12:59 +05:30
{
"type": "object",
2021-03-11 19:13:27 +05:30
"additionalProperties": false,
"required": [
2021-04-29 21:17:54 +05:30
"id",
"name",
"createdAt",
"updatedAt",
"version",
"packageType",
"project",
"tags",
"pipelines",
"versions",
2021-06-08 01:23:25 +05:30
"metadata",
"status"
2021-03-11 19:13:27 +05:30
],
2021-03-08 18:12:59 +05:30
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"version": {
"type": ["string", "null"]
},
2021-03-11 19:13:27 +05:30
"packageType": {
2021-03-08 18:12:59 +05:30
"type": ["string"],
2021-04-29 21:17:54 +05:30
"enum": [
"MAVEN",
"NPM",
"CONAN",
"NUGET",
"PYPI",
"COMPOSER",
"GENERIC",
"GOLANG",
"RUBYGEMS",
"DEBIAN"
]
2021-03-08 18:12:59 +05:30
},
"tags": {
2021-03-11 19:13:27 +05:30
"type": "object",
"additionalProperties": false,
"properties": {
"pageInfo": { "type": "object" },
"edges": { "type": "array" },
"nodes": { "type": "array" }
}
2021-03-08 18:12:59 +05:30
},
"project": {
"type": "object"
},
"pipelines": {
2021-03-11 19:13:27 +05:30
"type": "object",
"additionalProperties": false,
"properties": {
"pageInfo": { "type": "object" },
"count": { "type": "integer" },
"edges": { "type": "array" },
"nodes": { "type": "array" }
}
2021-03-08 18:12:59 +05:30
},
"versions": {
2021-03-11 19:13:27 +05:30
"type": "object",
"additionalProperties": false,
"properties": {
"pageInfo": { "type": "object" },
"edges": { "type": "array" },
"nodes": { "type": "array" }
}
},
"metadata": {
"anyOf": [
{ "$ref": "./package_composer_metadata.json" },
2021-04-29 21:17:54 +05:30
{ "$ref": "./package_conan_metadata.json" },
2021-06-08 01:23:25 +05:30
{ "$ref": "./package_maven_metadata.json" },
{ "$ref": "./package_nuget_metadata.json" },
2021-09-04 01:27:46 +05:30
{ "$ref": "./package_pypi_metadata.json" },
2021-03-11 19:13:27 +05:30
{ "type": "null" }
]
2021-04-29 21:17:54 +05:30
},
"packageFiles": {
"type": "object",
"additionalProperties": false,
"properties": {
"pageInfo": { "type": "object" },
"edges": { "type": "array" },
"nodes": { "type": "array" }
}
2021-06-08 01:23:25 +05:30
},
"status": {
"type": ["string"],
"enum": ["DEFAULT", "HIDDEN", "PROCESSING", "ERROR"]
2021-03-08 18:12:59 +05:30
}
}
}