debian-mirror-gitlab/spec/fixtures/api/schemas/public_api/v4/release.json

55 lines
1.5 KiB
JSON
Raw Normal View History

2017-09-10 17:25:29 +05:30
{
"type": "object",
2019-09-30 21:07:59 +05:30
"required": ["name", "tag_name", "commit", "released_at"],
2019-07-31 22:56:46 +05:30
"properties": {
"name": { "type": "string" },
"tag_name": { "type": "string" },
"description": { "type": "string" },
"description_html": { "type": "string" },
"created_at": { "type": "date" },
2019-09-30 21:07:59 +05:30
"released_at": { "type": "date" },
"upcoming_release": { "type": "boolean" },
2019-07-31 22:56:46 +05:30
"commit": {
"oneOf": [{ "type": "null" }, { "$ref": "commit/basic.json" }]
},
"author": {
"oneOf": [{ "type": "null" }, { "$ref": "user/basic.json" }]
},
2019-12-04 20:38:33 +05:30
"milestones": {
"type": "array",
2020-04-08 14:13:33 +05:30
"items": { "$ref": "milestone_with_stats.json" }
2019-12-04 20:38:33 +05:30
},
2019-12-21 20:55:43 +05:30
"commit_path": { "type": "string" },
"tag_path": { "type": "string" },
"name": { "type": "string" },
2020-04-22 19:07:51 +05:30
"evidences": {
"type": "array",
"items": { "$ref": "release/evidence.json" }
},
2019-07-31 22:56:46 +05:30
"assets": {
"required": ["count", "links", "sources"],
"properties": {
"count": { "type": "integer" },
"links": { "$ref": "../../release/links.json" },
"sources": {
"type": "array",
"items": {
"format": "zip",
"url": "string"
}
}
},
"additionalProperties": false
2019-12-21 20:55:43 +05:30
},
"_links": {
2020-01-01 13:55:28 +05:30
"required": ["merge_requests_url", "issues_url"],
2019-12-21 20:55:43 +05:30
"properties": {
"merge_requests_url": { "type": "string" },
2019-12-26 22:10:19 +05:30
"issues_url": { "type": "string" },
"edit_url": { "type": "string"}
2019-12-21 20:55:43 +05:30
}
2019-07-31 22:56:46 +05:30
}
2017-09-10 17:25:29 +05:30
},
"additionalProperties": false
}