From 3d8c70c0f9accbab926b999e0b1123b00959788b Mon Sep 17 00:00:00 2001 From: Naftoli Gugenheim <98384+nafg@users.noreply.github.com> Date: Wed, 18 Sep 2024 19:57:56 -0400 Subject: [PATCH] Fix #3101 Code gen schema import missing --- .../src/main/scala/zio/http/gen/openapi/EndpointGen.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zio-http-gen/src/main/scala/zio/http/gen/openapi/EndpointGen.scala b/zio-http-gen/src/main/scala/zio/http/gen/openapi/EndpointGen.scala index f22afb38b8..f92bdb144d 100644 --- a/zio-http-gen/src/main/scala/zio/http/gen/openapi/EndpointGen.scala +++ b/zio-http-gen/src/main/scala/zio/http/gen/openapi/EndpointGen.scala @@ -449,7 +449,7 @@ final case class EndpointGen(config: Config) { caseClasses = code.caseClasses, enums = code.enums, ) - Nil -> s"$method.${Inline.RequestBodyType}" + code.imports -> s"$method.${Inline.RequestBodyType}" } case OpenAPI.ReferenceOr.Reference(SchemaRef(ref), _, _) => Nil -> ref case other => throw new Exception(s"Unexpected request body schema: $other")