debian-mirror-gitlab/spec/fixtures/api/schemas/public_api/v4/snippets.json
2020-08-09 17:41:57 +05:30

47 lines
1.3 KiB
JSON

{
"type": "array",
"items": {
"type": "object",
"properties" : {
"id": { "type": "integer" },
"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" },
"raw_url": { "type": "string" },
"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" }
},
"required" : [
"id", "name", "username", "state", "avatar_url", "web_url"
]
}
},
"required": [
"id", "title", "file_name", "description", "web_url",
"created_at", "updated_at", "author", "raw_url"
],
"additionalProperties": false
}
}