config.json change

Signed-off-by: rajalakshmisv <rajalakshmisv@gmail.com>
Change-Id: Iddaec06e0426a24d385da80b7fe7f7b0503a4619
diff --git a/xapp-descriptor/config.json b/xapp-descriptor/config.json
index a0dbd79..5c9ed9c 100644
--- a/xapp-descriptor/config.json
+++ b/xapp-descriptor/config.json
@@ -1,46 +1,74 @@
-{

-  "xapp_name": "rc",

-  "version": "1.0.0",

-  "configPath": "/opt/ric/config/",

-  "containers": [

-    {

-      "name": "rc",

-      "image": {

-        "registry": "nexus3.o-ran-sc.org:10002",

-        "name": "o-ran-sc/ric-app-rc",

-        "tag": "1.0.0"

-      }

-    }

-  ],

-  "messaging": {

-    "ports": [

-      {

-        "name": "rmr-data",

-        "container": "rc",

-        "port": 4560,

-        "rxMessages": ["RIC_CONTROL_RESP"],

-        "txMessages": ["RIC_CONTROL_REQ"],

-        "policies": [],

-        "description": "rmr receive data port for rc"

-      },

-      {

-        "name": "rmr-route",

-        "container": "rc",

-        "port": 4561,

-        "description": "rmr route port for rc"

-      }

-    ]

-  },

-  "rmr": {

-    "protPort": "tcp:4560",

-    "maxSize": 2072,

-    "numWorkers": 1,

-    "rxMessages": ["RIC_CONTROL_RESP"],

-    "txMessages": ["RIC_CONTROL_REQ"],

-    "policies": []

-  },

-  "controls": {

-    "ricHOControlgRpcServerPort" : "7777"

-}

-

-}

+{
+  "controls-schema.json": {
+	"$schema": "http://json-schema.org/draft-07/schema#", "$id": "#/controls",
+	"type": "object",
+	"title": "Controls Section Schema",
+       	"required": [
+		"ricHOControlgRpcServerPort",
+		"logLevel"
+	],
+	"properties": {
+           "ricHOControlgRpcServerPort": {
+           "$id": "#/properties/ricHOControlgRpcServerPort",
+           "type": "string",
+           "title": "GRPC Port",
+           "default": "7777",
+           "examples": [
+           "7777" 
+      ],
+      "logLevel" : {
+      "$id": "#/properties/logLevel",
+      "type": "int",
+      "title": "log level",
+      "default":3,
+       "examples": [3]
+      }
+    }
+    }
+  },
+  "config-file.json":{
+  "xapp_name": "rc",
+  "version": "1.0.0",
+  "containers": [
+    {
+      "name": "rc",
+      "image": {
+        "registry": "nexus3.o-ran-sc.org:10002",
+        "name": "o-ran-sc/ric-app-rc",
+        "tag": "1.0.0"
+      }
+    }
+  ],
+  "messaging": {
+    "ports": [
+     {
+        "name": "rmr-data",
+        "container": "rc",
+        "port": 4560,
+        "rxMessages": ["RIC_CONTROL_ACK, RIC_CONTROL_FAILURE, RIC_ERROR_INDICATION"],
+        "txMessages": ["RIC_CONTROL_REQ"],
+        "policies": [],
+        "description": "rmr receive data port for rc"
+      },
+      {
+        "name": "rmr-route",
+        "container": "rc",
+        "port": 4561,
+        "description": "rmr route port for rc"
+      }
+    ]
+  },
+  "rmr": {
+    "protPort": "tcp:4560",
+    "maxSize": 2072,
+    "numWorkers": 1,
+    "rxMessages": ["RIC_CONTROL_ACK, RIC_CONTROL_FAILURE, RIC_ERROR_INDICATION"],
+    "txMessages": ["RIC_CONTROL_REQ"],
+    "policies": []
+  },
+   "controls": {
+	   "ricHOControlgRpcServerPort" : "7777",
+	   "logLevel": 4
+   }
+}
+}