summaryrefslogtreecommitdiff
path: root/lib/JWebmail/Model/Driver/QMailAuthuser/schema.json
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2021-08-31 20:23:03 +0200
committerJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2021-08-31 20:23:03 +0200
commite1bafc13858b5c72a7584c52d3d9d6d597d39e6b (patch)
treeb7135f6c08ab43a97ab2e5fce896b470461829bd /lib/JWebmail/Model/Driver/QMailAuthuser/schema.json
parent1e1eabaac06721ee0d686d10a6effa9a3450a1ca (diff)
restructured ipc format
Diffstat (limited to 'lib/JWebmail/Model/Driver/QMailAuthuser/schema.json')
-rw-r--r--lib/JWebmail/Model/Driver/QMailAuthuser/schema.json54
1 files changed, 29 insertions, 25 deletions
diff --git a/lib/JWebmail/Model/Driver/QMailAuthuser/schema.json b/lib/JWebmail/Model/Driver/QMailAuthuser/schema.json
index 5d5247a..b63a5eb 100644
--- a/lib/JWebmail/Model/Driver/QMailAuthuser/schema.json
+++ b/lib/JWebmail/Model/Driver/QMailAuthuser/schema.json
@@ -33,47 +33,51 @@
"mail_head": {
"type": "object",
"properties": {
- "new": {"type": "boolean"},
- "mid": {"type": "string"},
"content_type": {"type": "string"},
- "size": {"type": "integer", "minimum": 0},
- "date_send": {"type": "string"},
- "date_received": {"type": "string"},
+ "date": {"type": "string"},
"cc": {"$ref": "#/definitions/mail_addrs"},
"bcc": {"$ref": "#/definitions/mail_addrs"},
"to": {"$ref": "#/definitions/mail_addrs"},
"from": {"$ref": "#/definitions/mail_addrs"},
"subject": {"type": "string"}
},
- "required": ["mid"]
+ "required": ["date", "from"]
},
- "list": {
+ "head_list": {
"type": "array",
"items": {
"$ref": "#/definitions/mail_head"
}
},
- "mail": {
- "$ref": "#/definitions/mail_head",
- "properties": {
- "body": {
- "anyOf": [
- {"type": "string"},
- {
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "object",
- "properties": {
- "val": {"type": "string"},
- "type": {"type": "string"}
- }
- }
+ "mail_body": {
+ "anyOf": [
+ {"type": "string"},
+ {
+ "type": "array",
+ "minItems": 1,
+ "items": {
+ "type": "object",
+ "properties": {
+ "head": {"$ref": "#/definitions/mail_head"},
+ "body": {"$ref": "#/definitions/mail_body"}
}
- ]
+ }
+ },
+ {
+ "ref": "#/definitions/mail"
}
+ ]
+ },
+ "mail": {
+ "type": "object",
+ "properties": {
+ "new": {"type": "boolean"},
+ "mid": {"type": "string"},
+ "size": {"type": "integer", "minimum": 0},
+ "head": {"$ref": "#/definitions/mail_head"},
+ "body": {"$ref": "#/definitions/mail_body"}
},
- "required": ["body"]
+ "required": ["mid"]
}
}
}