Skip to content

Instantly share code, notes, and snippets.

@ahoy-jon
Created August 2, 2024 15:39
Show Gist options
  • Save ahoy-jon/4d79d94633298cf56898cff45e4be083 to your computer and use it in GitHub Desktop.
Save ahoy-jon/4d79d94633298cf56898cff45e4be083 to your computer and use it in GitHub Desktop.
//> 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