From 49768b4d9b5d2a7a8827919063c8ce919ff39e62 Mon Sep 17 00:00:00 2001 From: aribeiro Date: Thu, 8 Apr 2021 17:19:09 +0100 Subject: Fix attribute create and update actions Issue-ID: SDC-3551 Signed-off-by: aribeiro Change-Id: I7cac2c793254eec824e1d5365383a8deeccaa1d4 --- .../sdc/be/datatypes/elements/AttributeDataDefinition.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'common-be') diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java index ea693efe40..cffab12f90 100644 --- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java +++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java @@ -53,6 +53,7 @@ public class AttributeDataDefinition extends ToscaDataDefinition { this.setValue(attributeDataDefinition.getValue()); this.setStatus(attributeDataDefinition.getStatus()); this.setEntry_schema(attributeDataDefinition.getEntry_schema()); + this.setSchema(attributeDataDefinition.getSchema()); this.setOutputPath(attributeDataDefinition.getOutputPath()); this.setInstanceUniqueId(attributeDataDefinition.getInstanceUniqueId()); this.setAttributeId(attributeDataDefinition.getAttributeId()); @@ -127,7 +128,11 @@ public class AttributeDataDefinition extends ToscaDataDefinition { } public SchemaDefinition getSchema() { - return null; + return (SchemaDefinition) getToscaPresentationValue(JsonPresentationFields.SCHEMA); + } + + public void setSchema(final SchemaDefinition schema) { + setToscaPresentationValue(JsonPresentationFields.SCHEMA, schema); } public String getParentUniqueId() { -- cgit 1.2.3-korg