Created
August 2, 2024 15:39
-
-
Save ahoy-jon/4d79d94633298cf56898cff45e4be083 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//> using scala 3.4.2 | |
//> using dep "io.swagger.core.v3:swagger-annotations-jakarta:2.2.22" | |
//> using dep "com.softwaremill.sttp.tapir:tapir-core_3:1.11.0" | |
import io.swagger.v3.oas.annotations.media.{Schema => OpenApiSchema} | |
import sttp.tapir.* | |
import sttp.tapir.generic.auto.* | |
object bug { | |
case class Toto(name : String) | |
case class Tata(@OpenApiSchema(example = "8080") port: Int) | |
Schema.derived[Toto] | |
Schema.derived[Tata] | |
} | |
object main { | |
def main(args: Array[String]): Unit = { | |
println("hello friends") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment