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

38 lines
1.1 KiB
JSON
Raw Normal View History

2018-03-17 18:26:18 +05:30
{
"type": "array",
"items": {
"type": "object",
"properties" : {
"id": { "type": "integer" },
"project_id": { "type": ["integer", "null"] },
"title": { "type": "string" },
"file_name": { "type": ["string", "null"] },
"description": { "type": ["string", "null"] },
2018-11-08 19:23:39 +05:30
"visibility": { "type": "string" },
2018-03-17 18:26:18 +05:30
"web_url": { "type": "string" },
2020-05-24 23:13:21 +05:30
"raw_url": { "type": "string" },
2018-03-17 18:26:18 +05:30
"created_at": { "type": "date" },
"updated_at": { "type": "date" },
"author": {
"type": "object",
"properties": {
"name": { "type": "string" },
"username": { "type": "string" },
"id": { "type": "integer" },
"state": { "type": "string" },
"avatar_url": { "type": "uri" },
"web_url": { "type": "uri" }
},
2020-05-24 23:13:21 +05:30
"required" : [
"id", "name", "username", "state", "avatar_url", "web_url"
]
2018-03-17 18:26:18 +05:30
}
},
"required": [
"id", "title", "file_name", "description", "web_url",
2020-05-24 23:13:21 +05:30
"created_at", "updated_at", "author", "raw_url"
2018-03-17 18:26:18 +05:30
],
"additionalProperties": false
}
}