From 0551506959b07ca47cc06b38d008453b2e2426c8 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 524fc5c9e4..18592aa56a 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 cc2dce0223..03a94ca498 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 496f1c9284..0cfa8c3dd3 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 b0a4bd028d..e445fd7a17 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",