import {JSONSchema7} from 'json-schema'; export default { $id: 'https://schemas.coastapp.com/card/v1/toastOptions.json', $schema: 'http://json-schema.org/draft-07/schema', title: 'Toast Options', type: 'object', additionalProperties: false, properties: { message: {type: 'string'}, style: {$ref: '#/definitions/toastStyle'}, icon: {$ref: 'https://schemas.coastapp.com/card/v1/icon.json'}, buttons: { type: 'array', items: {$ref: '#/definitions/toastButton'}, }, }, required: ['message'], definitions: { toastStyle: { type: 'string', enum: ['confirmation', 'warning', 'default'], }, toastButton: { title: 'Toast Button', type: 'object', additionalProperties: false, properties: { label: {type: 'string'}, actions: {$ref: 'https://schemas.coastapp.com/card/v1/actions.json'}, }, required: ['label'], }, }, } as JSONSchema7;