make policy-id optional 80/104180/1
authorjhh <jorge.hernandez-herrero@att.com>
Mon, 23 Mar 2020 19:37:27 +0000 (14:37 -0500)
committerjhh <jorge.hernandez-herrero@att.com>
Mon, 23 Mar 2020 19:37:27 +0000 (14:37 -0500)
for legacy operational policies, PAP does not populate the
metadata.policy-id field.   The metadata structure is empty.

Issue-ID: POLICY-2356
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ib726c935a9ea344577dc58638bdd39192c7a10d1

policy-domains/src/main/resources/schemas/onap.policies.controlloop.Operational-1.0.0.schema.json

index 820bdd7..0b52fe3 100644 (file)
@@ -53,9 +53,7 @@
             "$id": "#/properties/metadata",
             "type": "object",
             "title": "Metadata",
-            "required": [
-                "policy-id"
-            ],
+            "required": [],
             "properties": {
                 "policy-id": {
                     "$id": "#/properties/metadata/properties/policy-id",