@rapharacing/schemas
Version:
OpenAPI to JSON Schema to be used with middy for CC response validation
25 lines • 780 B
JSON
{
"type": "object",
"properties": {
"channel": {
"type": "string",
"example": "email, sms, site_message",
"description": "preference channel"
},
"enabled": {
"type": "boolean",
"description": "if true, the channel is on; if false, the channel is off"
},
"value": {
"type": "string",
"description": "the corresponding value of current channel, for example, for SMS it should be a mobile number; for email it should be an email address"
},
"visible": {
"type": "boolean",
"description": "if true, the channel is visible; if false, the channel is invisible"
}
},
"title": "notificationPreference",
"description": "Notification preference",
"$schema": "http://json-schema.org/schema#"
}