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")