🐛(backend) set attachment name fallback

The openapi schema specifies that an attachment has always
a name but we have some case where this attribute is None.
To guarantee this contract, we use a fallback value `unnamed`
when name is None during serialization.

Also fix other issues of the same kind identified.
This commit is contained in:
jbpenrath
2026-06-23 22:49:46 +02:00
parent 11d191d967
commit 35260fe7f8
16 changed files with 222 additions and 18 deletions
+27 -3
View File
@@ -7928,7 +7928,27 @@
"description": "date and time at which a record was last updated"
},
"expected_dns_records": {
"type": "string",
"type": "array",
"nullable": true,
"items": {
"type": "object",
"properties": {
"target": {
"type": "string"
},
"type": {
"type": "string"
},
"value": {
"type": "string"
}
},
"required": [
"target",
"type",
"value"
]
},
"readOnly": true
},
"mailbox_count": {
@@ -8111,6 +8131,7 @@
"$ref": "#/components/schemas/MailboxRoleChoices"
}
],
"nullable": true,
"readOnly": true
},
"count_unread_threads": {
@@ -8421,7 +8442,8 @@
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
"readOnly": true,
"nullable": true
},
"last_accessed_at": {
"type": "string",
@@ -8511,7 +8533,8 @@
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
"readOnly": true,
"nullable": true
},
"last_accessed_at": {
"type": "string",
@@ -9975,6 +9998,7 @@
"$ref": "#/components/schemas/ThreadAccessRoleChoices"
}
],
"nullable": true,
"readOnly": true
},
"accesses": {