X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=dashboard%2Fwebapp-backend%2Fsrc%2Ftest%2Fresources%2Fdemo-policy-schema-3.json;h=695514cd477284267e07f0f5d9b161a410489ad1;hb=a2ad32a98e7a3f32214d3ecd7ca9730e3602d11f;hp=3be99591c4d263f30bbde4a3fcc777f3e64d588f;hpb=a2bc79c5f0027e953815d6e98814a748b36827aa;p=nonrtric.git diff --git a/dashboard/webapp-backend/src/test/resources/demo-policy-schema-3.json b/dashboard/webapp-backend/src/test/resources/demo-policy-schema-3.json index 3be99591..695514cd 100644 --- a/dashboard/webapp-backend/src/test/resources/demo-policy-schema-3.json +++ b/dashboard/webapp-backend/src/test/resources/demo-policy-schema-3.json @@ -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