mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Fix missing optional site.json fields (#17364)
The site.json endpoint was missing some optional fields on the categories property that is returned. This commit documents the `parent_category_id` which is present if there are subcategories and it also documents the `custom_fields` property which the chat plugin is using causing some flaky tests.
This commit is contained in:
@@ -634,6 +634,16 @@
|
||||
},
|
||||
"can_edit": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"custom_fields": {
|
||||
"type": [
|
||||
"object",
|
||||
"null"
|
||||
],
|
||||
"additionalProperties": true
|
||||
},
|
||||
"parent_category_id": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
||||
Reference in New Issue
Block a user