mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
feat: store null instead of empty string for album.description (#30123)
Addresses the first column of issue #28832: album.description now stores and returns null instead of an empty string. Co-authored-by: Giacomo Pinato <giacomo.pinato@gmail.com>
This commit is contained in:
parent
e7aace436d
commit
6b6058c463
9 changed files with 118 additions and 18 deletions
|
|
@ -16585,7 +16585,18 @@
|
|||
},
|
||||
"description": {
|
||||
"description": "Album description",
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"x-immich-history": [
|
||||
{
|
||||
"version": "v1",
|
||||
"state": "Added"
|
||||
},
|
||||
{
|
||||
"version": "v3",
|
||||
"state": "Updated",
|
||||
"description": "An empty string is returned instead of null for backwards compatibility; null will be returned in v4."
|
||||
}
|
||||
]
|
||||
},
|
||||
"endDate": {
|
||||
"description": "End date (latest asset)",
|
||||
|
|
@ -18443,7 +18454,19 @@
|
|||
},
|
||||
"description": {
|
||||
"description": "Album description",
|
||||
"type": "string"
|
||||
"nullable": true,
|
||||
"type": "string",
|
||||
"x-immich-history": [
|
||||
{
|
||||
"version": "v1",
|
||||
"state": "Added"
|
||||
},
|
||||
{
|
||||
"version": "v3",
|
||||
"state": "Updated",
|
||||
"description": "Sending an empty string is deprecated; send null instead. Empty strings will no longer be coerced to null in v4."
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
|
@ -27115,7 +27138,19 @@
|
|||
},
|
||||
"description": {
|
||||
"description": "Album description",
|
||||
"type": "string"
|
||||
"nullable": true,
|
||||
"type": "string",
|
||||
"x-immich-history": [
|
||||
{
|
||||
"version": "v1",
|
||||
"state": "Added"
|
||||
},
|
||||
{
|
||||
"version": "v3",
|
||||
"state": "Updated",
|
||||
"description": "Sending an empty string is deprecated; send null instead. Empty strings will no longer be coerced to null in v4."
|
||||
}
|
||||
]
|
||||
},
|
||||
"isActivityEnabled": {
|
||||
"description": "Enable activity feed",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue