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,8 +126,7 @@
},
"actions_summary": {
"type": "array",
"items": [
{
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
@ -152,7 +151,6 @@
"id"
]
}
]
},
"moderator": {
"type": "boolean"
@ -207,9 +205,7 @@
},
"mentioned_users": {
"type": "array",
"items": [
]
"items": {}
},
"name": {
"type": [

View File

@ -130,8 +130,7 @@
},
"actions_summary": {
"type": "array",
"items": [
{
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
@ -147,7 +146,6 @@
"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": [