diff --git a/responses/admin/site_settings.json b/responses/admin/site_settings.json index 44a00c9..cf5b43c 100644 --- a/responses/admin/site_settings.json +++ b/responses/admin/site_settings.json @@ -2342,10 +2342,24 @@ "setting": "disable_emails", "description": "Prevent Discourse from sending any kind of emails", "default": "false", - "type": "bool", - "value": "false", + "type": "enum", + "value": "yes", "category": "email", - "preview": null + "preview": null, + "valid_values": [ + { + "name": "yes", + "value": "yes" + }, + { + "name": "no", + "value": "no" + }, + { + "name": "non-staff", + "value": "non-staff" + } + ] }, { "setting": "strip_images_from_short_emails", diff --git a/swagger.json b/swagger.json index 0916ec0..4ee072a 100644 --- a/swagger.json +++ b/swagger.json @@ -13478,8 +13478,13 @@ ], "properties": { "disable_emails": { - "type": "boolean", - "example": false, + "type": "string", + "enum": [ + "yes", + "no", + "non-staff" + ], + "example": "yes", "description": "Prevent Discourse from sending any kind of emails\n" } } diff --git a/swagger.yml b/swagger.yml index 8b3582e..3262f11 100644 --- a/swagger.yml +++ b/swagger.yml @@ -6055,8 +6055,12 @@ paths: - disable_emails properties: disable_emails: - type: boolean - example: false + type: string + enum: + - yes + - no + - non-staff + example: "yes" description: | Prevent Discourse from sending any kind of emails responses: