|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | + "$id": "https://json.schemastore.org/mail-servers-config.json", |
| 4 | + "title": "Mail Servers Configuration", |
| 5 | + "description": "Schema for storing mail server configurations", |
| 6 | + "type": "object", |
| 7 | + "additionalProperties": { |
| 8 | + "type": "object", |
| 9 | + "description": "Mail service configuration for a domain", |
| 10 | + "properties": { |
| 11 | + "pop": { |
| 12 | + "type": "object", |
| 13 | + "description": "POP3 server configuration", |
| 14 | + "properties": { |
| 15 | + "host": { |
| 16 | + "type": "string", |
| 17 | + "format": "hostname", |
| 18 | + "description": "POP3 server hostname" |
| 19 | + }, |
| 20 | + "port": { |
| 21 | + "type": "integer", |
| 22 | + "minimum": 1, |
| 23 | + "maximum": 65535, |
| 24 | + "default": 995, |
| 25 | + "description": "POP3 server port" |
| 26 | + } |
| 27 | + }, |
| 28 | + "required": ["host", "port"], |
| 29 | + "additionalProperties": false |
| 30 | + }, |
| 31 | + "imap": { |
| 32 | + "type": "object", |
| 33 | + "description": "IMAP server configuration", |
| 34 | + "properties": { |
| 35 | + "host": { |
| 36 | + "type": "string", |
| 37 | + "format": "hostname", |
| 38 | + "description": "IMAP server hostname" |
| 39 | + }, |
| 40 | + "port": { |
| 41 | + "type": "integer", |
| 42 | + "minimum": 1, |
| 43 | + "maximum": 65535, |
| 44 | + "default": 993, |
| 45 | + "description": "IMAP server port" |
| 46 | + } |
| 47 | + }, |
| 48 | + "required": ["host", "port"], |
| 49 | + "additionalProperties": false |
| 50 | + }, |
| 51 | + "smtp": { |
| 52 | + "type": "object", |
| 53 | + "description": "SMTP server configuration", |
| 54 | + "properties": { |
| 55 | + "host": { |
| 56 | + "type": "string", |
| 57 | + "format": "hostname", |
| 58 | + "description": "SMTP server hostname" |
| 59 | + }, |
| 60 | + "port": { |
| 61 | + "type": "integer", |
| 62 | + "minimum": 1, |
| 63 | + "maximum": 65535, |
| 64 | + "default": 587, |
| 65 | + "description": "SMTP server port" |
| 66 | + } |
| 67 | + }, |
| 68 | + "required": ["host", "port"], |
| 69 | + "additionalProperties": false |
| 70 | + } |
| 71 | + }, |
| 72 | + "additionalProperties": false |
| 73 | + }, |
| 74 | + "minProperties": 1 |
| 75 | +} |
0 commit comments