From f5dec237f103654c0718bbb84792de9612bdbf6a Mon Sep 17 00:00:00 2001 From: Naftoli Gugenheim <98384+nafg@users.noreply.github.com> Date: Wed, 18 Sep 2024 21:00:46 -0400 Subject: [PATCH] gen: add missing import to other test cases --- .../resources/EndpointWithRequestResponseBodyInline.scala | 1 + .../EndpointWithRequestResponseBodyInlineNested.scala | 1 + .../EndpointWithRequestResponseBodyWithKeywordsInline.scala | 1 + .../src/test/scala/zio/http/gen/openapi/EndpointGenSpec.scala | 4 ++-- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/zio-http-gen/src/test/resources/EndpointWithRequestResponseBodyInline.scala b/zio-http-gen/src/test/resources/EndpointWithRequestResponseBodyInline.scala index 524fc5c9e46..18592aa56a2 100644 --- a/zio-http-gen/src/test/resources/EndpointWithRequestResponseBodyInline.scala +++ b/zio-http-gen/src/test/resources/EndpointWithRequestResponseBodyInline.scala @@ -1,6 +1,7 @@ package test.api.v1 import test.component._ +import zio.schema._ object Users { import zio.http._ diff --git a/zio-http-gen/src/test/resources/EndpointWithRequestResponseBodyInlineNested.scala b/zio-http-gen/src/test/resources/EndpointWithRequestResponseBodyInlineNested.scala index cc2dce0223d..03a94ca4987 100644 --- a/zio-http-gen/src/test/resources/EndpointWithRequestResponseBodyInlineNested.scala +++ b/zio-http-gen/src/test/resources/EndpointWithRequestResponseBodyInlineNested.scala @@ -1,6 +1,7 @@ package test.api.v1 import test.component._ +import zio.schema._ object Users { import zio.http._ diff --git a/zio-http-gen/src/test/resources/EndpointWithRequestResponseBodyWithKeywordsInline.scala b/zio-http-gen/src/test/resources/EndpointWithRequestResponseBodyWithKeywordsInline.scala index 496f1c92848..0cfa8c3dd39 100644 --- a/zio-http-gen/src/test/resources/EndpointWithRequestResponseBodyWithKeywordsInline.scala +++ b/zio-http-gen/src/test/resources/EndpointWithRequestResponseBodyWithKeywordsInline.scala @@ -1,6 +1,7 @@ package test.api.v1 import test.component._ +import zio.schema._ object Keywords { import zio.http._ diff --git a/zio-http-gen/src/test/scala/zio/http/gen/openapi/EndpointGenSpec.scala b/zio-http-gen/src/test/scala/zio/http/gen/openapi/EndpointGenSpec.scala index b0a4bd028d3..e445fd7a176 100644 --- a/zio-http-gen/src/test/scala/zio/http/gen/openapi/EndpointGenSpec.scala +++ b/zio-http-gen/src/test/scala/zio/http/gen/openapi/EndpointGenSpec.scala @@ -910,7 +910,7 @@ object EndpointGenSpec extends ZIOSpecDefault { val expected = Code.File( List("api", "v1", "Users.scala"), pkgPath = List("api", "v1"), - imports = List(Code.Import.FromBase(path = "component._")), + imports = List(Code.Import.FromBase(path = "component._"), Code.Import.Absolute("zio.schema._")), objects = List( Code.Object( "Users", @@ -1026,7 +1026,7 @@ object EndpointGenSpec extends ZIOSpecDefault { val expected = Code.File( List("api", "v1", "Users.scala"), pkgPath = List("api", "v1"), - imports = List(Code.Import.FromBase(path = "component._")), + imports = List(Code.Import.FromBase(path = "component._"), Code.Import.Absolute("zio.schema._")), objects = List( Code.Object( "Users",