lcr/0002-add-rename-json-schema-for-rename-subcommand-in-rest.patch
WangFengTu fe22cb8a0b sync patches from upstream
Signed-off-by: WangFengTu <wangfengtu@huawei.com>
2022-04-18 17:16:41 +08:00

57 lines
1.4 KiB
Diff

From 91c988d01b96ba31ac495228a17644aa4aab47c9 Mon Sep 17 00:00:00 2001
From: haozi007 <liuhao27@huawei.com>
Date: Tue, 22 Mar 2022 07:24:11 +0000
Subject: [PATCH 2/3] add rename json schema for rename subcommand in restful
mode
Signed-off-by: haozi007 <liuhao27@huawei.com>
---
src/json/schema/container/rename-request.json | 12 ++++++++++++
src/json/schema/container/rename-response.json | 15 +++++++++++++++
2 files changed, 27 insertions(+)
create mode 100644 src/json/schema/container/rename-request.json
create mode 100644 src/json/schema/container/rename-response.json
diff --git a/src/json/schema/container/rename-request.json b/src/json/schema/container/rename-request.json
new file mode 100644
index 0000000..35a6bd3
--- /dev/null
+++ b/src/json/schema/container/rename-request.json
@@ -0,0 +1,12 @@
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "old-name": {
+ "type": "string"
+ },
+ "new-name": {
+ "type": "string"
+ }
+ }
+}
diff --git a/src/json/schema/container/rename-response.json b/src/json/schema/container/rename-response.json
new file mode 100644
index 0000000..048f43d
--- /dev/null
+++ b/src/json/schema/container/rename-response.json
@@ -0,0 +1,15 @@
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "cc": {
+ "type": "uint32"
+ },
+ "errmsg": {
+ "type": "string"
+ }
+ }
+}
--
2.25.1