From 7baae5eb8d090c999263a473cd02225b0a08d9b7 Mon Sep 17 00:00:00 2001 From: Hugh Simpson Date: Fri, 21 Jun 2024 15:35:43 +0100 Subject: [PATCH] rename field --- .../src/main/scala/sttp/tapir/codegen/EndpointGenerator.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openapi-codegen/core/src/main/scala/sttp/tapir/codegen/EndpointGenerator.scala b/openapi-codegen/core/src/main/scala/sttp/tapir/codegen/EndpointGenerator.scala index dbec1d459b..d896f50364 100644 --- a/openapi-codegen/core/src/main/scala/sttp/tapir/codegen/EndpointGenerator.scala +++ b/openapi-codegen/core/src/main/scala/sttp/tapir/codegen/EndpointGenerator.scala @@ -23,14 +23,14 @@ case class GeneratedEndpoint(name: String, definition: String, maybeLocalEnums: case class GeneratedEndpointsForFile(maybeFileName: Option[String], generatedEndpoints: Seq[GeneratedEndpoint]) case class GeneratedEndpoints( - namesBodiesAndEnums: Seq[GeneratedEndpointsForFile], + namesAndParamsByFile: Seq[GeneratedEndpointsForFile], queryParamRefs: Set[String], jsonParamRefs: Set[String], definesEnumQueryParam: Boolean ) { def merge(that: GeneratedEndpoints): GeneratedEndpoints = GeneratedEndpoints( - (namesBodiesAndEnums ++ that.namesBodiesAndEnums) + (namesAndParamsByFile ++ that.namesAndParamsByFile) .groupBy(_.maybeFileName) .map { case (fileName, endpoints) => GeneratedEndpointsForFile(fileName, endpoints.map(_.generatedEndpoints).reduce(_ ++ _)) } .toSeq,