in src/main/scala/managehelpcontentpublisher/InputModel.scala [12:23]
def readInput(jsonString: String): Either[Failure, InputModel] =
Try(read[InputModel](jsonString)).toEither.left.map(e => RequestFailure(s"Failed to read input: ${e.getMessage}"))
}
case class InputArticle(
title: String,
body: String,
urlName: String,
dataCategories: Seq[ArticleDataCategory]
)
object InputArticle {