DEV: Fix flakey site.json rswag specs (#17161)
The category description fields as part of the rswag specs for the site.json endpoint were flakey. Removing the `required` attribute allows us to still document that these fields exists, but that depending on certain site settings they may not be present in the response.
This commit is contained in:
parent
011a16cb8a
commit
a5552321cf
|
@ -502,13 +502,22 @@
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "string"
|
"type": [
|
||||||
|
"string",
|
||||||
|
"null"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"description_text": {
|
"description_text": {
|
||||||
"type": "string"
|
"type": [
|
||||||
|
"string",
|
||||||
|
"null"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"description_excerpt": {
|
"description_excerpt": {
|
||||||
"type": "string"
|
"type": [
|
||||||
|
"string",
|
||||||
|
"null"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"topic_url": {
|
"topic_url": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
@ -636,9 +645,6 @@
|
||||||
"topic_count",
|
"topic_count",
|
||||||
"post_count",
|
"post_count",
|
||||||
"position",
|
"position",
|
||||||
"description",
|
|
||||||
"description_text",
|
|
||||||
"description_excerpt",
|
|
||||||
"topic_url",
|
"topic_url",
|
||||||
"read_restricted",
|
"read_restricted",
|
||||||
"permission",
|
"permission",
|
||||||
|
|
Loading…
Reference in New Issue