File: temporary-workaroud-json-validation.patch

package info (click to toggle)
freezer-api 13.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,880 kB
  • sloc: python: 15,656; sh: 389; makefile: 59
file content (39 lines) | stat: -rw-r--r-- 1,134 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Description: Freezer-api is validating always
 path_to_backup, container etc., even if it is not needed.
 This is not permanent fix, it's just workaroud when we
 are ignoring validation for fields below.
Author: Michal Arbet <michal.arbet@ultimum.io>
Forwarded: no
Last-Update: 2019-08-10

diff --git a/freezer_api/common/json_schemas.py b/freezer_api/common/json_schemas.py
index eb5a9c2..553b58d 100644
--- a/freezer_api/common/json_schemas.py
+++ b/freezer_api/common/json_schemas.py
@@ -33,18 +33,18 @@ freezer_action_properties = {
         "pattern": r"^[\w-]+$",
         "type": "string"
     },
-    "path_to_backup": {
-        "id": "path_to_backup",
-        "type": "string"
-    },
+#    "path_to_backup": {
+#        "id": "path_to_backup",
+#        "type": "string"
+#    },
     "backup_name": {
         "id": "backup_name",
         "type": "string"
     },
-    "container": {
-        "id": "container",
-        "type": "string"
-    },
+#    "container": {
+#        "id": "container",
+#        "type": "string"
+#    },
     "restore_abs_path": {
         "id": "restore_abs_path",
         "type": "string"