Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix site_setting disable_emails arguments #22

Merged
merged 2 commits into from Apr 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 17 additions & 3 deletions responses/admin/site_settings.json
Expand Up @@ -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",
Expand Down
9 changes: 7 additions & 2 deletions swagger.json
Expand Up @@ -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"
}
}
Expand Down
8 changes: 6 additions & 2 deletions swagger.yml
Expand Up @@ -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:
Expand Down