discourse/spec/requests/api/schemas/json/group_members_response.json
J. David Lowe 95a6268c45
repair structural problems with the openapi spec (#16710)
* repair structural problems with the openapi spec

* additional tweaks to fix failing tests

* un-mark is_categorized as required & restore method
2022-06-20 10:56:56 -06:00

139 lines
2.8 KiB
JSON

{
"additionalProperties": false,
"properties": {
"members": {
"type": "array",
"items":
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer"
},
"username": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"avatar_template": {
"type": "string"
},
"title": {
"type": [
"string",
"null"
]
},
"last_posted_at": {
"type": "string"
},
"last_seen_at": {
"type": "string"
},
"added_at": {
"type": "string"
},
"timezone": {
"type": "string"
}
},
"required": [
"id",
"username",
"name",
"avatar_template",
"title",
"last_posted_at",
"last_seen_at",
"added_at",
"timezone"
]
}
},
"owners": {
"type": "array",
"items":
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer"
},
"username": {
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"avatar_template": {
"type": "string"
},
"title": {
"type": [
"string",
"null"
]
},
"last_posted_at": {
"type": "string"
},
"last_seen_at": {
"type": "string"
},
"added_at": {
"type": "string"
},
"timezone": {
"type": "string"
}
},
"required": [
"id",
"username",
"name",
"avatar_template",
"title",
"last_posted_at",
"last_seen_at",
"added_at",
"timezone"
]
}
},
"meta": {
"type": "object",
"additionalProperties": false,
"properties": {
"total": {
"type": "integer"
},
"limit": {
"type": "integer"
},
"offset": {
"type": "integer"
}
},
"required": [
"total",
"limit",
"offset"
]
}
},
"required": [
"members",
"owners",
"meta"
]
}