modify policytype to include data 71/139771/1
authorgururajarao79 <gb00566633@techmahindra.com>
Thu, 19 Dec 2024 12:32:49 +0000 (13:32 +0100)
committergururajarao79 <gb00566633@techmahindra.com>
Thu, 19 Dec 2024 12:33:03 +0000 (13:33 +0100)
Issue-ID: POLICY-5212
Change-Id: I6f288c91355662e3da20cf2dcb7fe0348e024e83
Signed-off-by: gururajarao79 <gb00566633@techmahindra.com>
models-examples/src/main/resources/policytypes/onap.policies.native.opa.yaml

index b8a0521..3228a4b 100644 (file)
@@ -11,8 +11,15 @@ policy_types:
     name: onap.policies.native.opa
     description: a policy type for native opa policies
     properties:
+      data:
+        type: map
+        type_version: 0.0.0
+        description: The data for Policy
+        required: false
+        metadata:
+          encoding: Base64
       policy:
-        type: string
+        type: map
         type_version: 0.0.0
         description: The rego PolicySet or Policy
         required: true