diff --git a/openapi-codegen/sbt-plugin/src/sbt-test/sbt-openapi-codegen/oneOf-json-roundtrip/src/main/scala/Main.scala b/openapi-codegen/sbt-plugin/src/sbt-test/sbt-openapi-codegen/oneOf-json-roundtrip/src/main/scala/Main.scala index 83b6610b20..9b79493aa7 100644 --- a/openapi-codegen/sbt-plugin/src/sbt-test/sbt-openapi-codegen/oneOf-json-roundtrip/src/main/scala/Main.scala +++ b/openapi-codegen/sbt-plugin/src/sbt-test/sbt-openapi-codegen/oneOf-json-roundtrip/src/main/scala/Main.scala @@ -1,23 +1,4 @@ object Main extends App { - /* - import sttp.tapir._ - import sttp.tapir.json.circe._ - import io.circe.generic.auto._ - - type Limit = Int - type AuthToken = String - case class BooksFromYear(genre: String, year: Int) - case class Book(title: String) - - val booksListing: Endpoint[(BooksFromYear, Limit, AuthToken), String, List[Book], Any] = - endpoint - .get - .in(("books" / path[String]("genre") / path[Int]("year")).mapTo[BooksFromYear]) - .in(query[Limit]("limit").description("Maximum number of books to retrieve")) - .in(header[AuthToken]("X-Auth-Token")) - .errorOut(stringBody) - .out(jsonBody[List[Book]]) - */ import sttp.apispec.openapi.circe.yaml._ import sttp.tapir.generated._ import sttp.tapir.docs.openapi._ diff --git a/openapi-codegen/sbt-plugin/src/sbt-test/sbt-openapi-codegen/oneOf-json-roundtrip_jsoniter/src/main/scala/Main.scala b/openapi-codegen/sbt-plugin/src/sbt-test/sbt-openapi-codegen/oneOf-json-roundtrip_jsoniter/src/main/scala/Main.scala index 83b6610b20..9b79493aa7 100644 --- a/openapi-codegen/sbt-plugin/src/sbt-test/sbt-openapi-codegen/oneOf-json-roundtrip_jsoniter/src/main/scala/Main.scala +++ b/openapi-codegen/sbt-plugin/src/sbt-test/sbt-openapi-codegen/oneOf-json-roundtrip_jsoniter/src/main/scala/Main.scala @@ -1,23 +1,4 @@ object Main extends App { - /* - import sttp.tapir._ - import sttp.tapir.json.circe._ - import io.circe.generic.auto._ - - type Limit = Int - type AuthToken = String - case class BooksFromYear(genre: String, year: Int) - case class Book(title: String) - - val booksListing: Endpoint[(BooksFromYear, Limit, AuthToken), String, List[Book], Any] = - endpoint - .get - .in(("books" / path[String]("genre") / path[Int]("year")).mapTo[BooksFromYear]) - .in(query[Limit]("limit").description("Maximum number of books to retrieve")) - .in(header[AuthToken]("X-Auth-Token")) - .errorOut(stringBody) - .out(jsonBody[List[Book]]) - */ import sttp.apispec.openapi.circe.yaml._ import sttp.tapir.generated._ import sttp.tapir.docs.openapi._ diff --git a/openapi-codegen/sbt-plugin/src/sbt-test/sbt-openapi-codegen/oneOf-json-roundtrip_scala3/src/main/scala/Main.scala b/openapi-codegen/sbt-plugin/src/sbt-test/sbt-openapi-codegen/oneOf-json-roundtrip_scala3/src/main/scala/Main.scala index 83b6610b20..9b79493aa7 100644 --- a/openapi-codegen/sbt-plugin/src/sbt-test/sbt-openapi-codegen/oneOf-json-roundtrip_scala3/src/main/scala/Main.scala +++ b/openapi-codegen/sbt-plugin/src/sbt-test/sbt-openapi-codegen/oneOf-json-roundtrip_scala3/src/main/scala/Main.scala @@ -1,23 +1,4 @@ object Main extends App { - /* - import sttp.tapir._ - import sttp.tapir.json.circe._ - import io.circe.generic.auto._ - - type Limit = Int - type AuthToken = String - case class BooksFromYear(genre: String, year: Int) - case class Book(title: String) - - val booksListing: Endpoint[(BooksFromYear, Limit, AuthToken), String, List[Book], Any] = - endpoint - .get - .in(("books" / path[String]("genre") / path[Int]("year")).mapTo[BooksFromYear]) - .in(query[Limit]("limit").description("Maximum number of books to retrieve")) - .in(header[AuthToken]("X-Auth-Token")) - .errorOut(stringBody) - .out(jsonBody[List[Book]]) - */ import sttp.apispec.openapi.circe.yaml._ import sttp.tapir.generated._ import sttp.tapir.docs.openapi._