discourse/spec/requests/api/schemas/json/user_emails_response.json
Blake Erickson 643f82d8d6
DEV: Update email responses in api docs (#15178)
Documenting the `/u/:username:/emails.json` endpoint.

Also removing some email fields from user api responses because they
aren't actually included in the response unless you are querying
yourself.
2021-12-03 08:03:58 -07:00

27 lines
440 B
JSON

{
"additionalProperties": false,
"properties": {
"email": {
"type": "string"
},
"secondary_emails": {
"type": "array",
"items": []
},
"unconfirmed_emails": {
"type": "array",
"items": []
},
"associated_accounts": {
"type": "array",
"items": []
}
},
"required": [
"email",
"secondary_emails",
"unconfirmed_emails",
"associated_accounts"
]
}