diff --git a/scala-generator/src/main/scala/models/generator/mock/MockFactoriesGenerator.scala b/scala-generator/src/main/scala/models/generator/mock/MockFactoriesGenerator.scala index 0cd46d5e..bc56eb12 100644 --- a/scala-generator/src/main/scala/models/generator/mock/MockFactoriesGenerator.scala +++ b/scala-generator/src/main/scala/models/generator/mock/MockFactoriesGenerator.scala @@ -71,7 +71,7 @@ object MockFactoriesGenerator extends CodeGenerator { private[this] def needsWrapper(datatype: ScalaDatatype): Boolean = { datatype match { - case _: ScalaPrimitive.Model | _: ScalaPrimitive.GeneratedModel | _: ScalaPrimitive.Union => { + case _: ScalaPrimitive.Enum | _: ScalaPrimitive.Model | _: ScalaPrimitive.GeneratedModel | _: ScalaPrimitive.Union => { false } case _ => true