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

73 lines
1.9 KiB
JSON
Raw Normal View History

2020-11-24 15:15:51 +05:30
{
"type": "object",
"required": [
"id",
"created_at",
"expires_at",
"access_level",
"requested_at",
"source",
2021-01-03 14:25:43 +05:30
"valid_roles",
2021-04-29 21:17:54 +05:30
"type",
2020-11-24 15:15:51 +05:30
"can_update",
2021-03-11 19:13:27 +05:30
"can_remove",
"is_direct_member"
2020-11-24 15:15:51 +05:30
],
"properties": {
"id": { "type": "integer" },
"created_at": { "type": "date-time" },
"expires_at": { "type": ["date-time", "null"] },
"requested_at": { "type": ["date-time", "null"] },
"can_update": { "type": "boolean" },
"can_remove": { "type": "boolean" },
2021-03-11 19:13:27 +05:30
"is_direct_member": { "type": "boolean" },
2020-11-24 15:15:51 +05:30
"access_level": {
"type": "object",
"required": ["integer_value", "string_value"],
"properties": {
"integer_value": { "type": "integer" },
"string_value": { "type": "string" }
2021-03-08 18:12:59 +05:30
},
"additionalProperties": false
2020-11-24 15:15:51 +05:30
},
"source": {
"type": "object",
2021-03-08 18:12:59 +05:30
"required": ["id", "full_name", "web_url"],
2020-11-24 15:15:51 +05:30
"properties": {
"id": { "type": "integer" },
2021-03-08 18:12:59 +05:30
"full_name": { "type": "string" },
2020-11-24 15:15:51 +05:30
"web_url": { "type": "string" }
2021-03-08 18:12:59 +05:30
},
"additionalProperties": false
2020-11-24 15:15:51 +05:30
},
2021-01-03 14:25:43 +05:30
"valid_roles": { "type": "object" },
2021-04-29 21:17:54 +05:30
"type": { "type": "string" },
2020-11-24 15:15:51 +05:30
"created_by": {
"type": "object",
"required": ["name", "web_url"],
"properties": {
"name": { "type": "string" },
"web_url": { "type": "string" }
2021-03-08 18:12:59 +05:30
},
"additionalProperties": false
2020-11-24 15:15:51 +05:30
},
"user": {
2021-03-08 18:12:59 +05:30
"allOf": [
{ "$ref": "member_user.json" }
]
2020-11-24 15:15:51 +05:30
},
2021-11-18 22:05:49 +05:30
"state": { "type": "integer" },
2020-11-24 15:15:51 +05:30
"invite": {
"type": "object",
2021-11-18 22:05:49 +05:30
"required": ["email", "avatar_url", "can_resend", "user_state"],
2020-11-24 15:15:51 +05:30
"properties": {
"email": { "type": "string" },
"avatar_url": { "type": "string" },
2021-11-18 22:05:49 +05:30
"can_resend": { "type": "boolean" },
"user_state": { "type": "string" }
2021-03-08 18:12:59 +05:30
},
"additionalProperties": false
2020-11-24 15:15:51 +05:30
}
}
}