Jenny G. L. 9791e6f537
[Scala][Client]Add Http4s scala3 client codegen (#19658)
* fix attemp

* use java.time.Instant

* fix client gen

* Tweeks

* header and form

* use scala 3 enum

* more tweeks

* add additional properties; add auth

* add form media type

* add modelsOnly

* add unit tests

* add petstore samples

* add doc

* add new samle to .github/workflows/samples-scala.yaml

* update build.sbt template

* simply the baseclient

* add None to optional field

* tweek auth model and format

---------

Co-authored-by: Jenny Leahy <jennyleahy@JENNYLEAHY.localdomain>
2024-10-05 17:00:19 +08:00

34 lines
976 B
Scala

scalaVersion := "3.3.3"
version := "1.0.0"
name := "scala-http4s-client"
organization := "org.openapitools"
val CirceVersion = "0.14.9"
val Http4sVersion = "0.23.26"
libraryDependencies ++= Seq(
"org.http4s" %% "http4s-ember-client" % Http4sVersion,
"org.http4s" %% "http4s-circe" % Http4sVersion,
"org.http4s" %% "http4s-dsl" % Http4sVersion,
"org.http4s" %% "http4s-client" % Http4sVersion,
"io.circe" %% "circe-core" % CirceVersion,
"io.circe" %% "circe-generic" % CirceVersion,
"io.circe" %% "circe-parser" % CirceVersion,
"org.scalatest" %% "scalatest" % "3.2.19" % "test"
)
scalacOptions := Seq(
"-encoding",
"UTF-8",
"-deprecation",
"-unchecked",
"-feature",
"-language:existentials,experimental.macros,higherKinds,implicitConversions,postfixOps,adhocExtensions",
"-Yretain-trees",
"-Xmax-inlines:100",
"-Ykind-projector:underscores",
"-source:future"
)
Compile / publishArtifact := false