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:
Blake Erickson 2022-06-20 13:33:33 -05:00 committed by GitHub
parent 011a16cb8a
commit a5552321cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 6 deletions

View File

@ -502,13 +502,22 @@
"type": "integer"
},
"description": {
"type": "string"
"type": [
"string",
"null"
]
},
"description_text": {
"type": "string"
"type": [
"string",
"null"
]
},
"description_excerpt": {
"type": "string"
"type": [
"string",
"null"
]
},
"topic_url": {
"type": "string"
@ -636,9 +645,6 @@
"topic_count",
"post_count",
"position",
"description",
"description_text",
"description_excerpt",
"topic_url",
"read_restricted",
"permission",