Fix structural problems with the openapi spec (#22256)

* Fix structural problems with the openapi spec

* Fix array issue for items
This commit is contained in:
Kyle 2023-06-24 01:06:45 +08:00 committed by GitHub
parent 36b9572bb1
commit 9515bb5add
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 45 additions and 53 deletions

View File

@ -42,7 +42,7 @@
},
"form_template_ids": {
"type": "array",
"items": []
"items": {}
}
},
"required": [

View File

@ -76,7 +76,7 @@
},
"form_template_ids": {
"type": "array",
"items": []
"items": {}
},
"has_children": {
"type": [

View File

@ -79,7 +79,7 @@
},
"form_template_ids": {
"type": "array",
"items": []
"items": {}
},
"has_children": {
"type": [

View File

@ -126,33 +126,31 @@
},
"actions_summary": {
"type": "array",
"items": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"description": "`2`: like, `3`, `4`, `6`, `7`, `8`: flag"
},
"count": {
"type": "integer"
},
"acted": {
"type": "boolean"
},
"can_undo": {
"type": "boolean"
},
"can_act": {
"type": "boolean"
}
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"description": "`2`: like, `3`, `4`, `6`, `7`, `8`: flag"
},
"required": [
"id"
]
}
]
"count": {
"type": "integer"
},
"acted": {
"type": "boolean"
},
"can_undo": {
"type": "boolean"
},
"can_act": {
"type": "boolean"
}
},
"required": [
"id"
]
}
},
"moderator": {
"type": "boolean"
@ -207,9 +205,7 @@
},
"mentioned_users": {
"type": "array",
"items": [
]
"items": {}
},
"name": {
"type": [

View File

@ -130,24 +130,22 @@
},
"actions_summary": {
"type": "array",
"items": [
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer"
},
"can_act": {
"type": "boolean"
}
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer"
},
"required": [
"id",
"can_act"
]
}
]
"can_act": {
"type": "boolean"
}
},
"required": [
"id",
"can_act"
]
}
},
"moderator": {
"type": "boolean"
@ -205,9 +203,7 @@
},
"mentioned_users": {
"type": "array",
"items": [
]
"items": {}
},
"name": {
"type": [

View File

@ -712,7 +712,7 @@
},
"form_template_ids": {
"type": "array",
"items": []
"items": {}
}
},
"required": [