You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: ZMS-210 API and docs fallback values updates (#802)
* in APIs remove fallbacks to false and fallback to undefined. Update documentation
* update docs
* Updae autoreply test. Don't account for undefined fields (not present in response)
Copy file name to clipboardExpand all lines: docs/api/openapidocs.json
+24-48Lines changed: 24 additions & 48 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
"contact": {
7
7
"url": "https://github.com/zone-eu/wildduck"
8
8
},
9
-
"version": "1.45.4"
9
+
"version": "1.45.5"
10
10
},
11
11
"servers": [
12
12
{
@@ -278,6 +278,10 @@
278
278
},
279
279
"description": "An array of forwarding targets. The value could either be an email address or a relay url to next MX server (\"smtp://mx2.zone.eu:25\") or an URL where mail contents are POSTed to"
280
280
},
281
+
"mtaRelay": {
282
+
"type": "string",
283
+
"description": "An address of an SMTP MTA relay. The value should be a relay url. If specified uses the this relay as the outbound MTA."
284
+
},
281
285
"spamLevel": {
282
286
"type": "number",
283
287
"description": "Relative scale for detecting spam. 0 means that everything is spam, 100 means that nothing is spam",
@@ -592,6 +596,10 @@
592
596
},
593
597
"description": "An array of forwarding targets. The value could either be an email address or a relay url to next MX server (\"smtp://mx2.zone.eu:25\") or an URL where mail contents are POSTed to"
594
598
},
599
+
"mtaRelay": {
600
+
"type": "string",
601
+
"description": "An address of an SMTP MTA relay. The value should be a relay url. If specified uses the this relay as the outbound MTA."
602
+
},
595
603
"spamLevel": {
596
604
"type": "number",
597
605
"description": "Relative scale for detecting spam. 0 means that everything is spam, 100 means that nothing is spam"
@@ -9339,7 +9347,7 @@
9339
9347
},
9340
9348
"retention": {
9341
9349
"type": "number",
9342
-
"description": "Default retention time (in ms). false if not enabled"
9350
+
"description": "Default retention time (in ms). Not present if not enabled"
9343
9351
},
9344
9352
"enabled2fa": {
9345
9353
"type": "array",
@@ -9384,6 +9392,10 @@
9384
9392
},
9385
9393
"description": "List of forwarding targets"
9386
9394
},
9395
+
"mtaRelay": {
9396
+
"type": "string",
9397
+
"description": "MTA Relay url"
9398
+
},
9387
9399
"spamLevel": {
9388
9400
"type": "number",
9389
9401
"description": "Relative scale for detecting spam. 0 means that everything is spam, 100 means that nothing is spam"
@@ -9440,7 +9452,6 @@
9440
9452
"username",
9441
9453
"name",
9442
9454
"address",
9443
-
"retention",
9444
9455
"enabled2fa",
9445
9456
"autoreply",
9446
9457
"encryptMessages",
@@ -9723,7 +9734,6 @@
9723
9734
},
9724
9735
"required": [
9725
9736
"id",
9726
-
"name",
9727
9737
"address",
9728
9738
"user",
9729
9739
"forwarded",
@@ -9853,7 +9863,6 @@
9853
9863
},
9854
9864
"required": [
9855
9865
"id",
9856
-
"name",
9857
9866
"address",
9858
9867
"main",
9859
9868
"created",
@@ -9931,7 +9940,6 @@
9931
9940
"required": [
9932
9941
"success",
9933
9942
"id",
9934
-
"name",
9935
9943
"address",
9936
9944
"main",
9937
9945
"created",
@@ -10079,11 +10087,7 @@
10079
10087
}
10080
10088
},
10081
10089
"required": [
10082
-
"status",
10083
-
"name",
10084
-
"subject",
10085
-
"text",
10086
-
"html"
10090
+
"status"
10087
10091
]
10088
10092
},
10089
10093
"GetForwardedAddressResponse": {
@@ -10150,7 +10154,6 @@
10150
10154
"success",
10151
10155
"id",
10152
10156
"address",
10153
-
"name",
10154
10157
"limits",
10155
10158
"autoreply",
10156
10159
"created",
@@ -11542,26 +11545,12 @@
11542
11545
"description": "File ID"
11543
11546
},
11544
11547
"filename": {
11545
-
"oneOf": [
11546
-
{
11547
-
"type": "string"
11548
-
},
11549
-
{
11550
-
"type": "boolean"
11551
-
}
11552
-
],
11553
-
"description": "Filename. False if none"
11548
+
"type": "string",
11549
+
"description": "Filename"
11554
11550
},
11555
11551
"contentType": {
11556
-
"oneOf": [
11557
-
{
11558
-
"type": "string"
11559
-
},
11560
-
{
11561
-
"type": "boolean"
11562
-
}
11563
-
],
11564
-
"description": "Content-Type of the file. False if none"
11552
+
"type": "string",
11553
+
"description": "Content-Type of the file"
11565
11554
},
11566
11555
"cid": {
11567
11556
"type": "string",
@@ -11583,8 +11572,6 @@
11583
11572
},
11584
11573
"required": [
11585
11574
"id",
11586
-
"filename",
11587
-
"contentType",
11588
11575
"size",
11589
11576
"created",
11590
11577
"md5"
@@ -12136,18 +12123,14 @@
12136
12123
"properties": {
12137
12124
"time": {
12138
12125
"type": "string",
12139
-
"description": "Datestring of last use or false if password has not been used",
12126
+
"description": "Datestring of last use or not present if password has not been used",
12140
12127
"format": "date-time"
12141
12128
},
12142
12129
"event": {
12143
12130
"type": "string",
12144
12131
"description": "Event ID of the security log for the last authentication"
12145
12132
}
12146
-
},
12147
-
"required": [
12148
-
"time",
12149
-
"event"
12150
-
]
12133
+
}
12151
12134
},
12152
12135
"GetASPsResult": {
12153
12136
"type": "object",
@@ -12978,18 +12961,12 @@
12978
12961
"start": {
12979
12962
"type": "string",
12980
12963
"description": "Datestring of the start of the autoreply or boolean false to disable start checks",
12981
-
"format": "date-time",
12982
-
"enum": [
12983
-
false
12984
-
]
12964
+
"format": "date-time"
12985
12965
},
12986
12966
"end": {
12987
12967
"type": "string",
12988
12968
"description": "Datestring of the end of the autoreply or boolean false to disable end checks",
0 commit comments