Add a schema for logArchiveResult
authorBoyeon <boyeon.son@samsung.com>
Wed, 8 May 2019 06:40:44 +0000 (15:40 +0900)
committerBoyeon <boyeon.son@samsung.com>
Wed, 8 May 2019 06:40:44 +0000 (15:40 +0900)
schema/logArchiveRequest.json
schema/logArchiveResult.json [new file with mode: 0644]

index 602d83a..36b758e 100644 (file)
@@ -2,7 +2,7 @@
     "$schema": "http://json-schema.org/draft-07/schema",
     "$id": "http://tizen.org/logArchiveRequest.json",
     "title": "Log Archive Request",
-    "description": "Request for generating the archive file of logs",
+    "description": "Generating and saving the archive file of logs",
     "type": "object",
     "required": [
       "logPath",
diff --git a/schema/logArchiveResult.json b/schema/logArchiveResult.json
new file mode 100644 (file)
index 0000000..e79f9f5
--- /dev/null
@@ -0,0 +1,29 @@
+{
+    "$schema": "http://json-schema.org/draft-07/schema",
+    "$id": "http://tizen.org/logArchiveResult.json",
+    "title": "Log Archive Result",
+    "description": "Getting the result of log archive",
+    "type": "object",
+    "required": [
+      "logPath",
+      "archiveFile"
+    ],
+    "properties": {
+      "archiveFile": {
+        "$id": "#/properties/archiveFile",
+        "description": "Path of the archive file",
+        "type": "string",
+        "examples": [
+          "/home/owner/org.example.test/data/log.zip"
+        ]
+      },
+      "md5Checksum": {
+        "$id": "#/properties/md5Checksum",
+        "description": "Value of MD5 Checksum used to validate the downloaded file",
+        "type": "string",
+        "examples": [
+          "fdofd0sfnef0f9ed"
+        ]
+      }
+    }
+  }
\ No newline at end of file