Add description for snapshots

This commit is contained in:
grossmj committed 2026-04-09 20:25:44 +08:00
1 parent fbea9b655d
commit 274cef6cf5
3 files changed
+29 -6

No files matched your search

+10 -1
View File
@@ -25,6 +25,10 @@ SNAPSHOT_CREATE_SCHEMA = {
"description": "Snapshot name",
"minLength": 1
},
"description": {
"description": "Snapshot description",
"minLength": 1
},
},
"additionalProperties": False,
"required": ["name"]
@@ -59,11 +63,16 @@ SNAPSHOT_OBJECT_SCHEMA = {
"type": "string",
"minLength": 1
},
"description": {
"description": "Snapshot description",
"type": "string",
"minLength": 1
},
"created_at": {
"description": "Date of the snapshot (UTC timestamp)",
"type": "integer"
}
},
"additionalProperties": False,
"required": ["snapshot_id", "name", "filename", "created_at", "project_id"]
"required": ["snapshot_id", "name", "filename", "created_at", "description", "project_id"]
}