From 813376a9e1540eee168bb4bd7ed89d513d129807 Mon Sep 17 00:00:00 2001 From: Hugh Simpson Date: Fri, 5 Apr 2024 08:34:58 +0100 Subject: [PATCH] fix test --- .../scala/sttp/tapir/codegen/ClassDefinitionGeneratorSpec.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi-codegen/core/src/test/scala/sttp/tapir/codegen/ClassDefinitionGeneratorSpec.scala b/openapi-codegen/core/src/test/scala/sttp/tapir/codegen/ClassDefinitionGeneratorSpec.scala index 34e25d5f2d..c728ea631d 100644 --- a/openapi-codegen/core/src/test/scala/sttp/tapir/codegen/ClassDefinitionGeneratorSpec.scala +++ b/openapi-codegen/core/src/test/scala/sttp/tapir/codegen/ClassDefinitionGeneratorSpec.scala @@ -490,7 +490,7 @@ class ClassDefinitionGeneratorSpec extends CompileCheckTestBase { res shouldCompile () fullRes shouldCompile () extra.get should include( - """implicit lazy val reqWithVariantsCodec: com.github.plokhotnyuk.jsoniter_scala.core.JsonValueCodec[ReqWithVariants] = com.github.plokhotnyuk.jsoniter_scala.macros.JsonCodecMaker.make(com.github.plokhotnyuk.jsoniter_scala.macros.CodecMakerConfig.withAllowRecursiveTypes(true).withRequireDiscriminatorFirst(false).withDiscriminatorFieldName(Some("type")))""" + """implicit lazy val reqWithVariantsCodec: com.github.plokhotnyuk.jsoniter_scala.core.JsonValueCodec[ReqWithVariants] = com.github.plokhotnyuk.jsoniter_scala.macros.JsonCodecMaker.make(com.github.plokhotnyuk.jsoniter_scala.macros.CodecMakerConfig.withAllowRecursiveTypes(true).withTransientEmpty(false).withRequireCollectionFields(true).withRequireDiscriminatorFirst(false).withDiscriminatorFieldName(Some("type")))""" ) } testOK(TestHelpers.oneOfDocsWithMapping)