relax optional 'description' to also allow empty
description is an optional field, CLAMP users, may not populate
it and send an empty string value
description: ''
This change removes the requirement to be a non-empty string when
present.
Issue-ID: POLICY-2503
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I0c80368b5b6aa5fe5b1c25516cb9ba0a677d7b9a
diff --git a/policy-domains/src/main/resources/schemas/onap.policies.controlloop.operational.common.Drools-1.0.0.schema.json b/policy-domains/src/main/resources/schemas/onap.policies.controlloop.operational.common.Drools-1.0.0.schema.json
index a7dbf8b..7f56b2b 100644
--- a/policy-domains/src/main/resources/schemas/onap.policies.controlloop.operational.common.Drools-1.0.0.schema.json
+++ b/policy-domains/src/main/resources/schemas/onap.policies.controlloop.operational.common.Drools-1.0.0.schema.json
@@ -153,8 +153,7 @@
"title": "Description",
"examples": [
"Restart the VM"
- ],
- "pattern": "^(.+)$"
+ ]
},
"operation": {
"$id": "#/properties/properties/properties/operations/items/properties/operation",
@@ -327,4 +326,4 @@
}
}
}
-}
\ No newline at end of file
+}