debian-mirror-gitlab/spec/fixtures/api/schemas/entities/discussion.json

214 lines
4.6 KiB
JSON
Raw Normal View History

2019-10-12 21:52:04 +05:30
{
"type": "object",
2023-03-04 22:38:38 +05:30
"required": [
2019-10-12 21:52:04 +05:30
"id",
"notes",
"individual_note"
],
2023-03-04 22:38:38 +05:30
"properties": {
"id": {
"type": "string"
},
"individual_note": {
"type": "boolean"
},
2019-10-12 21:52:04 +05:30
"notes": {
"type": "array",
"items": {
"type": "object",
2023-03-04 22:38:38 +05:30
"properties": {
"id": {
"type": "string"
},
"type": {
"type": [
"string",
"null"
]
},
"body": {
"type": "string"
},
"attachment": {
"type": [
"string",
"null"
]
},
"award_emoji": {
"type": "array"
},
2019-10-12 21:52:04 +05:30
"author": {
"type": "object",
"properties": {
2023-03-04 22:38:38 +05:30
"name": {
"type": "string"
},
"username": {
"type": "string"
},
"id": {
"type": "integer"
},
"state": {
"type": "string"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"web_url": {
"type": "string",
"format": "uri"
},
"status_tooltip_html": {
"type": [
"string",
"null"
]
},
"path": {
"type": "string"
}
2021-06-08 01:23:25 +05:30
},
2020-05-24 23:13:21 +05:30
"required": [
"id",
"state",
"avatar_url",
"path",
"name",
"username"
]
2019-10-12 21:52:04 +05:30
},
2023-03-04 22:38:38 +05:30
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"system": {
"type": "boolean"
},
"noteable_id": {
"type": "integer"
},
"noteable_iid": {
"type": [
"integer",
"null"
]
},
"noteable_type": {
"type": "string"
},
2023-05-27 22:25:52 +05:30
"project_id": {
"type": "integer"
},
2023-03-04 22:38:38 +05:30
"resolved": {
"type": "boolean"
},
"resolvable": {
"type": "boolean"
},
"resolved_by": {
"type": [
"string",
"null"
]
},
"resolved_at": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"note": {
"type": "string"
},
"note_html": {
"type": "string"
},
"current_user": {
"type": "object"
},
"suggestions": {
"type": "array"
},
"discussion_id": {
"type": "string"
},
"emoji_awardable": {
"type": "boolean"
},
"report_abuse_path": {
"type": "string"
},
"noteable_note_url": {
"type": "string"
},
"resolve_path": {
"type": "string"
},
"resolve_with_issue_path": {
"type": "string"
},
"cached_markdown_version": {
"type": "integer"
},
"human_access": {
"type": [
"string",
"null"
]
},
"is_noteable_author": {
"type": "boolean"
},
"is_contributor": {
"type": "boolean"
},
"project_name": {
"type": "string"
},
"toggle_award_path": {
"type": "string"
},
"path": {
"type": "string"
},
"commands_changes": {
"type": "object",
"additionalProperties": true
},
"confidential": {
"type": [
"boolean",
"null"
]
},
"internal": {
"type": [
"boolean",
"null"
]
}
2019-10-12 21:52:04 +05:30
},
"required": [
2023-03-04 22:38:38 +05:30
"id",
"attachment",
"author",
"created_at",
"updated_at",
"system",
"noteable_id",
"noteable_type"
2019-10-12 21:52:04 +05:30
],
"additionalProperties": false
}
}
}
2023-05-27 22:25:52 +05:30
}