debian-mirror-gitlab/spec/fixtures/api/schemas/public_api/v4/notes.json
2023-05-27 22:25:52 +05:30

128 lines
2.3 KiB
JSON

{
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"type": {
"type": [
"string",
"null"
]
},
"body": {
"type": "string"
},
"attachment": {
"type": [
"string",
"null"
]
},
"author": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"username": {
"type": "string"
},
"id": {
"type": "integer"
},
"state": {
"type": "string"
},
"avatar_url": {
"type": "string",
"format": "uri"
},
"web_url": {
"type": "string",
"format": "uri"
}
},
"required": [
"id",
"name",
"username",
"state",
"avatar_url",
"web_url"
]
},
"commands_changes": {
"type": "object",
"additionalProperties": true
},
"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"
},
"noteable_type": {
"type": "string"
},
"project_id": {
"type": "integer"
},
"resolved": {
"type": "boolean"
},
"resolvable": {
"type": "boolean"
},
"resolved_by": {
"type": [
"string",
"null"
]
},
"resolved_at": {
"type": [
"string",
"null"
]
},
"confidential": {
"type": [
"boolean",
"null"
]
},
"internal": {
"type": [
"boolean",
"null"
]
}
},
"required": [
"id",
"body",
"attachment",
"author",
"created_at",
"updated_at",
"system",
"noteable_id",
"noteable_type"
],
"additionalProperties": false
}
}