create a directive for the template node 56/75256/3
authorSmokowski, Kevin (ks6305) <kevin.smokowski@att.com>
Thu, 3 Jan 2019 22:00:51 +0000 (22:00 +0000)
committerKevin Smokowski <kevin.smokowski@att.com>
Thu, 3 Jan 2019 22:04:46 +0000 (22:04 +0000)
commit57fd31e090909d55a36f957e45a84d9295254d44
treedd2d69f9285b060b850e868b4e2554b23605b037
parent62e62331a294052109f02686e4529fe613355990
create a directive for the template node

The directive is called hideNullJson, it hides json when it is null to deal with optional json attributes

Change-Id: I0b7a2c2f19e6f83e0d8c8c6f3552889c83dc997f
Issue-ID: CCSDK-903
Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com>
template-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/template/HideNullJson.java [new file with mode: 0755]
template-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/template/TemplateNode.java [changed mode: 0644->0755]
template-node/provider/src/test/java/org/onap/ccsdk/sli/plugins/template/HideNullJsonTest.java [new file with mode: 0755]
template-node/provider/src/test/resources/HideNullJson.vtl [new file with mode: 0755]