mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -42,7 +42,7 @@
|
||||
},
|
||||
"form_template_ids": {
|
||||
"type": "array",
|
||||
"items": []
|
||||
"items": {}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
},
|
||||
"form_template_ids": {
|
||||
"type": "array",
|
||||
"items": []
|
||||
"items": {}
|
||||
},
|
||||
"has_children": {
|
||||
"type": [
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
},
|
||||
"form_template_ids": {
|
||||
"type": "array",
|
||||
"items": []
|
||||
"items": {}
|
||||
},
|
||||
"has_children": {
|
||||
"type": [
|
||||
|
||||
@@ -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": [
|
||||
|
||||
@@ -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": [
|
||||
|
||||
@@ -712,7 +712,7 @@
|
||||
},
|
||||
"form_template_ids": {
|
||||
"type": "array",
|
||||
"items": []
|
||||
"items": {}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
||||
Reference in New Issue
Block a user