# Schema

This is a configuration section of [Custom MT](https://docs.vntranslator.com/advanced/custom-mt). Use this configuration to declare variables that will be stored locally, such as API keys for Machine Translation services.

## Object Structure

* **type**: `string`
* **name**: `string`
* **default**: `string|number`
* **required**: `boolean`
* **message**: `string` - error message displayed when validation fails

```json
{
    "schema": [
        { "type": "string", "name": "api_key", "default": "", "required": true, "message": "Required an API Key" },
        { "type": "string", "name": "formality", "default": "default", "required": true },
        { "type": "number", "name": "preserve_formatting", "default": 0, "required": true },            
    ]
}
```
