Renamed things to fit with namechange of RicSynchronizationTask
[nonrtric.git] / dashboard / webapp-backend / src / test / resources / demo-policy-schema-3.json
index 3be9959..695514c 100644 (file)
@@ -1,39 +1,59 @@
 {
-  "$id": "https://example.com/arrays.schema.json",
   "$schema": "http://json-schema.org/draft-07/schema#",
-  "description": "A representation of a person, company, organization, or place",
+  "title": "Example_TrafficSteeringPreference_1.0.0",
+  "description": "Example QoE Target policy type",
   "type": "object",
   "properties": {
-    "fruits": {
-      "type": "array",
-      "items": {
-        "type": "string"
-      }
-    },
-    "vegetables": {
-      "type": "array",
-      "items": {
-        "$ref": "#/definitions/veggie"
-      }
-    }
-  },
-  "definitions": {
-    "veggie": {
+    "scope": {
       "type": "object",
+      "properties": {
+        "ueId": {
+          "type": "string"
+        },
+        "sliceId": {
+          "type": "string"
+        },
+        "qosId": {
+          "type": "string"
+        },
+        "cellId": {
+          "type": "string"
+        }
+      },
+      "additionalProperties": false,
       "required": [
-        "veggieName",
-        "veggieLike"
-      ],
+        "ueId"
+      ]
+    },
+    "statement": {
+      "type": "object",
       "properties": {
-        "veggieName": {
+        "cellIdList": {
+          "type": "array",
+          "minItems": 1,
+          "uniqueItems": true,
+          "items": {
+            "type": "string"
+          }
+        },
+        "preference": {
           "type": "string",
-          "description": "The name of the vegetable."
+          "enum": [
+            "SHALL",
+            "PREFER",
+            "AVOID",
+            "FORBID"
+          ]
         },
-        "veggieLike": {
-          "type": "boolean",
-          "description": "Do I like this vegetable?"
+        "primary": {
+          "type": "boolean"
         }
-      }
+      },
+      "required": [
+        "cellIdList",
+        "preference"
+      ],
+      "additionalProperties": false
     }
   }
 }
\ No newline at end of file