Update TS xApp for Release E use case
[ric-app/ts.git] / xapp-descriptor / schema.json
diff --git a/xapp-descriptor/schema.json b/xapp-descriptor/schema.json
new file mode 100644 (file)
index 0000000..0339c18
--- /dev/null
@@ -0,0 +1,28 @@
+{
+  "$schema": "http://json-schema.org/draft-07/schema#",
+  "$id": "#/controls",
+  "type": "object",
+  "title": "Controls Section Schema",
+  "required": [
+    "ts_control_api",
+    "ts_control_ep"
+  ],
+  "properties": {
+    "ts_control_api": {
+      "$id": "#/properties/controls/items/properties/ts_control_api",
+      "enum": ["rest", "grpc"],
+      "title": "The TS API used to send control messages",
+      "default": "rest"
+    },
+    "ts_control_ep": {
+      "$id": "#/properties/controls/items/properties/ts_control_ep",
+      "type": "string",
+      "title": "The target endpoint of the TS Control API",
+      "default": "http://127.0.0.1:5000/api/echo",
+      "examples": [
+        "http://127.0.0.1:5000/api/echo",
+        "localhost:50051"
+      ]
+    }
+  }
+}