diff --git a/atom-publisher-lib/src/main/scala/com/gu/atom/util/JsonSupport.scala b/atom-publisher-lib/src/main/scala/com/gu/atom/util/JsonSupport.scala index d9132e9..7729c84 100644 --- a/atom-publisher-lib/src/main/scala/com/gu/atom/util/JsonSupport.scala +++ b/atom-publisher-lib/src/main/scala/com/gu/atom/util/JsonSupport.scala @@ -66,8 +66,8 @@ object JsonSupport { val fixedJson = { val nestedDataFieldName = atomType.toLowerCase - //Special case for commonsDivision because the scrooge enum value loses the casing - if (data(nestedDataFieldName).nonEmpty || nestedDataFieldName == "commonsdivision") c.value + //Special case for commonsDivision and multimediaSlideshow because the scrooge enum value loses the casing + if (data(nestedDataFieldName).nonEmpty || nestedDataFieldName == "commonsdivision" || nestedDataFieldName == "multimediaslideshow") c.value else { //Add the union type name under `data` val newData = JsonObject.fromIterable(Seq(nestedDataFieldName -> dataJson)) diff --git a/project/BuildVars.scala b/project/BuildVars.scala index f003701..d86ffbf 100644 --- a/project/BuildVars.scala +++ b/project/BuildVars.scala @@ -2,7 +2,7 @@ import sbt._ object BuildVars { lazy val awsVersion = "1.12.680" - lazy val contentAtomVersion = "12.0.1" + lazy val contentAtomVersion = "15.1.0" lazy val scroogeVersion = "22.1.0" lazy val playVersion = "3.0.10" lazy val mockitoVersion = "4.11.0"