From fc51bd75d5bd9870f69c992e30ec60f90219aae5 Mon Sep 17 00:00:00 2001 From: hochgi Date: Fri, 17 May 2024 19:46:46 +0300 Subject: [PATCH] [gen] benign code change to re-run CI after unrelated failure --- .../main/scala/zio/http/gen/openapi/EndpointGen.scala | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 06f7a40c4e..a4107e710d 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 @@ -7,7 +7,6 @@ import zio.Chunk import zio.http.Method import zio.http.endpoint.openapi.OpenAPI.ReferenceOr import zio.http.endpoint.openapi.{JsonSchema, OpenAPI} -import zio.http.gen.scala.Code.ScalaType import zio.http.gen.scala.{Code, CodeGen} object EndpointGen { @@ -899,7 +898,7 @@ final case class EndpointGen() { .map(_.withoutAnnotations) .flatMap(schemaToField(_, openAPI, "unused", annotations)) .map(_.fieldType) - .reduceLeft(ScalaType.Or(_, _)) + .reduceLeft(Code.ScalaType.Or.apply) Some(Code.Field(name, tpe)) case JsonSchema.AllOfSchema(_) => throw new Exception("Inline allOf schemas are not supported for fields") @@ -909,7 +908,7 @@ final case class EndpointGen() { .map(_.withoutAnnotations) .flatMap(schemaToField(_, openAPI, "unused", annotations)) .map(_.fieldType) - .reduceLeft(ScalaType.Or(_, _)) + .reduceLeft(Code.ScalaType.Or.apply) Some(Code.Field(name, tpe)) case JsonSchema.Number(JsonSchema.NumberFormat.Double) => Some(Code.Field(name, Code.Primitive.ScalaDouble)) @@ -928,9 +927,9 @@ final case class EndpointGen() { case JsonSchema.Enum(_) => Some(Code.Field(name, Code.TypeRef(name.capitalize))) case JsonSchema.Null => - Some(Code.Field(name, ScalaType.Unit)) + Some(Code.Field(name, Code.ScalaType.Unit)) case JsonSchema.AnyJson => - Some(Code.Field(name, ScalaType.JsonAST)) + Some(Code.Field(name, Code.ScalaType.JsonAST)) } }