Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Scala 3 in the IDE, for examples & documentation #3903

Merged
merged 8 commits into from
Jul 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Docs is now also a loom project
adamw committed Jul 4, 2024
commit 7e3542e282b57e575b2ff3beb11629a6238c6e87
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -250,7 +250,7 @@ lazy val rawAllAggregates = core.projectRefs ++
derevo.projectRefs ++
awsCdk.projectRefs

lazy val loomProjects: Seq[String] = Seq(nettyServerSync, nimaServer, examples).flatMap(_.projectRefs).flatMap(projectId)
lazy val loomProjects: Seq[String] = Seq(nettyServerSync, nimaServer, examples, documentation).flatMap(_.projectRefs).flatMap(projectId)

def projectId(projectRef: ProjectReference): Option[String] =
projectRef match {

Unchanged files with check annotations Beta

Error(s, JsonDecodeException(List(JsonError(e.msg, path = List.empty)), e))
}
} { t =>
serialization.write(t.asInstanceOf[AnyRef])

Check failure on line 31 in json/json4s/src/main/scala/sttp/tapir/json/json4s/TapirJson4s.scala

GitHub Actions / Test report for 3-JVM-11

sttp.tapir.json.json4s.TapirJson4sTests ► should encode and decode Scala case class with non-empty Option elements

Failed test found in: json/json4s/target/jvm-3/test-reports/TEST-sttp.tapir.json.json4s.TapirJson4sTests.xml Error: org.json4s.MappingException: Can't find ScalaSig for class sttp.tapir.json.json4s.Customer
Raw output
org.json4s.MappingException: Can't find ScalaSig for class sttp.tapir.json.json4s.Customer
	at org.json4s.reflect.package$.fail(package.scala:56)
	at org.json4s.reflect.ScalaSigReader$.$anonfun$7(ScalaSigReader.scala:81)
	at scala.Option.getOrElse(Option.scala:201)
	at org.json4s.reflect.ScalaSigReader$.findClass(ScalaSigReader.scala:81)
	at org.json4s.reflect.ScalaSigReader$.readConstructor(ScalaSigReader.scala:47)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.ctorParamType(Reflector.scala:162)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.$anonfun$6(Reflector.scala:152)
	at scala.collection.immutable.List.map(List.scala:246)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.ctorParamType(Reflector.scala:153)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.$anonfun$17(Reflector.scala:239)
	at scala.collection.immutable.ArraySeq.map(ArraySeq.scala:75)
	at scala.collection.immutable.ArraySeq.map(ArraySeq.scala:35)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.createConstructorDescriptors$$anonfun$3(Reflector.scala:247)
	at scala.collection.immutable.List.map(List.scala:246)
	at scala.collection.immutable.List.map(List.scala:79)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.createConstructorDescriptors(Reflector.scala:248)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.constructorsAndCompanion(Reflector.scala:180)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.result(Reflector.scala:271)
	at org.json4s.reflect.Reflector$.createDescriptorWithFormats(Reflector.scala:87)
	at org.json4s.reflect.Reflector$.describeWithFormats$$anonfun$1(Reflector.scala:70)
	at org.json4s.reflect.Memo.apply(Memo.scala:12)
	at org.json4s.reflect.Reflector$.describeWithFormats(Reflector.scala:70)
	at org.json4s.Extraction$.decomposeObject$1(Extraction.scala:143)
	at org.json4s.Extraction$.internalDecomposeWithBuilder(Extraction.scala:260)
	at org.json4s.Extraction$.decomposeWithBuilder(Extraction.scala:84)
	at org.json4s.Extraction$.decompose(Extraction.scala:275)
	at org.json4s.jackson.JacksonSerialization.write(Serialization.scala:30)
	at sttp.tapir.json.json4s.TapirJson4s.json4sCodec$$anonfun$2(TapirJson4s.scala:31)
	at sttp.tapir.Codec$.anyString$$anonfun$2(Codec.scala:591)
	at sttp.tapir.Codec$$anon$8.encode(Codec.scala:555)
	at sttp.tapir.json.json4s.TapirJson4sTests.testEncodeDecode(TapirJson4sTests.scala:24)
	at sttp.tapir.json.json4s.TapirJson4sTests.testFun$proxy1$1(TapirJson4sTests.scala:35)
	at sttp.tapir.json.json4s.TapirJson4sTests.$init$$$anonfun$1(TapirJson4sTests.scala:33)
	at org.scalatest.Transformer.apply$$anonfun$1(Transformer.scala:22)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:31)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.Transformer.apply(Transformer.scala:22)
	at org.scalatest.Transformer.apply(Transformer.scala:21)
	at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1717)
	at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
	at org.scalatest.TestSuite.withFixture$(TestSuite.scala:138)
	at sttp.tapir.json.json4s.TapirJson4sTests.withFixture(TapirJson4sTests.scala:17)
	at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1723)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTest$$anonfun$1(AnyFlatSpecLike.scala:1727)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1727)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:51)
	at sttp.tapir.json.json4s.TapirJson4sTests.runTest(TapirJson4sTests.scala:17)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTests$$anonfun$1(AnyFlatSpecLike.scala:1785)
	at org.scalatest.SuperEngine.traverseSubNodes$1$$anonfun$1(Engine.scala:413)
	at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
	at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
	at scala.collection.immutable.List.foreach(List.scala:333)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:429)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1785)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:51)
	at sttp.tapir.json.json4s.TapirJson4sTests.runTests(TapirJson4sTests.scala:17)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:564)
	at sttp.tapir.json.json4s.TapirJson4sTests.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(TapirJson4sTests.scala:17)
	at org.scalatest.flatspec.AnyFlatSpecLike.run$$anonfun$1(AnyFlatSpecLike.scala:1830)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1830)
	at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:51)
	at sttp.tapir.json.json4s.TapirJson4sTests.run(TapirJson4sTests.scala:17)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.TestRunner.runTest$1(TestFramework.scala:153)
	at sbt.TestRunner.run(TestFramework.scala:168)
	at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.$anonfun$apply$1(TestFramework.scala:336)
	at sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:296)
	at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:336)
	at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:336)
	at sbt.TestFunction.apply(TestFramework.scala:348)
	at sbt.Tests$.processRunnable$1(Tests.scala:475)
	at sbt.Tests$.$anonfun$makeSerial$1(Tests.scala:481)
	at sbt.std.Transform$$anon$3.$anonfun$apply$2(Transform.scala:47)
	at sbt.std.Transform$$anon$4.work(Transform.scala:69)
	at sbt.Execute.$anonfun$submit$2(Execute.scala:283)
	at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:24)
	at sbt.Execute.work(Execute.scala:292)
	at sbt.Execute.$anonfun$submit$1(Execute.scala:283)
	at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
	at sbt.CompletionService$$anon$2.call(CompletionService.scala:65)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)

Check failure on line 31 in json/json4s/src/main/scala/sttp/tapir/json/json4s/TapirJson4s.scala

GitHub Actions / Test report for 3-JVM-11

sttp.tapir.json.json4s.TapirJson4sTests ► should encode and decode Scala case class with empty Option elements

Failed test found in: json/json4s/target/jvm-3/test-reports/TEST-sttp.tapir.json.json4s.TapirJson4sTests.xml Error: org.json4s.MappingException: Can't find ScalaSig for class sttp.tapir.json.json4s.Customer
Raw output
org.json4s.MappingException: Can't find ScalaSig for class sttp.tapir.json.json4s.Customer
	at org.json4s.reflect.package$.fail(package.scala:56)
	at org.json4s.reflect.ScalaSigReader$.$anonfun$7(ScalaSigReader.scala:81)
	at scala.Option.getOrElse(Option.scala:201)
	at org.json4s.reflect.ScalaSigReader$.findClass(ScalaSigReader.scala:81)
	at org.json4s.reflect.ScalaSigReader$.readConstructor(ScalaSigReader.scala:47)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.ctorParamType(Reflector.scala:162)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.$anonfun$6(Reflector.scala:152)
	at scala.collection.immutable.List.map(List.scala:246)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.ctorParamType(Reflector.scala:153)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.$anonfun$17(Reflector.scala:239)
	at scala.collection.immutable.ArraySeq.map(ArraySeq.scala:75)
	at scala.collection.immutable.ArraySeq.map(ArraySeq.scala:35)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.createConstructorDescriptors$$anonfun$3(Reflector.scala:247)
	at scala.collection.immutable.List.map(List.scala:246)
	at scala.collection.immutable.List.map(List.scala:79)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.createConstructorDescriptors(Reflector.scala:248)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.constructorsAndCompanion(Reflector.scala:180)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.result(Reflector.scala:271)
	at org.json4s.reflect.Reflector$.createDescriptorWithFormats(Reflector.scala:87)
	at org.json4s.reflect.Reflector$.describeWithFormats$$anonfun$1(Reflector.scala:70)
	at org.json4s.reflect.Memo.apply(Memo.scala:12)
	at org.json4s.reflect.Reflector$.describeWithFormats(Reflector.scala:70)
	at org.json4s.Extraction$.decomposeObject$1(Extraction.scala:143)
	at org.json4s.Extraction$.internalDecomposeWithBuilder(Extraction.scala:260)
	at org.json4s.Extraction$.decomposeWithBuilder(Extraction.scala:84)
	at org.json4s.Extraction$.decompose(Extraction.scala:275)
	at org.json4s.jackson.JacksonSerialization.write(Serialization.scala:30)
	at sttp.tapir.json.json4s.TapirJson4s.json4sCodec$$anonfun$2(TapirJson4s.scala:31)
	at sttp.tapir.Codec$.anyString$$anonfun$2(Codec.scala:591)
	at sttp.tapir.Codec$$anon$8.encode(Codec.scala:555)
	at sttp.tapir.json.json4s.TapirJson4sTests.testEncodeDecode(TapirJson4sTests.scala:24)
	at sttp.tapir.json.json4s.TapirJson4sTests.testFun$proxy2$1(TapirJson4sTests.scala:40)
	at sttp.tapir.json.json4s.TapirJson4sTests.$init$$$anonfun$2(TapirJson4sTests.scala:38)
	at org.scalatest.Transformer.apply$$anonfun$1(Transformer.scala:22)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:31)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.Transformer.apply(Transformer.scala:22)
	at org.scalatest.Transformer.apply(Transformer.scala:21)
	at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1717)
	at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
	at org.scalatest.TestSuite.withFixture$(TestSuite.scala:138)
	at sttp.tapir.json.json4s.TapirJson4sTests.withFixture(TapirJson4sTests.scala:17)
	at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1723)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTest$$anonfun$1(AnyFlatSpecLike.scala:1727)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1727)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:51)
	at sttp.tapir.json.json4s.TapirJson4sTests.runTest(TapirJson4sTests.scala:17)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTests$$anonfun$1(AnyFlatSpecLike.scala:1785)
	at org.scalatest.SuperEngine.traverseSubNodes$1$$anonfun$1(Engine.scala:413)
	at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
	at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
	at scala.collection.immutable.List.foreach(List.scala:333)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:429)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1785)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:51)
	at sttp.tapir.json.json4s.TapirJson4sTests.runTests(TapirJson4sTests.scala:17)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:564)
	at sttp.tapir.json.json4s.TapirJson4sTests.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(TapirJson4sTests.scala:17)
	at org.scalatest.flatspec.AnyFlatSpecLike.run$$anonfun$1(AnyFlatSpecLike.scala:1830)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1830)
	at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:51)
	at sttp.tapir.json.json4s.TapirJson4sTests.run(TapirJson4sTests.scala:17)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.TestRunner.runTest$1(TestFramework.scala:153)
	at sbt.TestRunner.run(TestFramework.scala:168)
	at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.$anonfun$apply$1(TestFramework.scala:336)
	at sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:296)
	at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:336)
	at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:336)
	at sbt.TestFunction.apply(TestFramework.scala:348)
	at sbt.Tests$.processRunnable$1(Tests.scala:475)
	at sbt.Tests$.$anonfun$makeSerial$1(Tests.scala:481)
	at sbt.std.Transform$$anon$3.$anonfun$apply$2(Transform.scala:47)
	at sbt.std.Transform$$anon$4.work(Transform.scala:69)
	at sbt.Execute.$anonfun$submit$2(Execute.scala:283)
	at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:24)
	at sbt.Execute.work(Execute.scala:292)
	at sbt.Execute.$anonfun$submit$1(Execute.scala:283)
	at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
	at sbt.CompletionService$$anon$2.call(CompletionService.scala:65)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)

Check failure on line 31 in json/json4s/src/main/scala/sttp/tapir/json/json4s/TapirJson4s.scala

GitHub Actions / Test report for 3-JVM-11

sttp.tapir.json.json4s.TapirJson4sTests ► should encode and decode Scala case class with list

Failed test found in: json/json4s/target/jvm-3/test-reports/TEST-sttp.tapir.json.json4s.TapirJson4sTests.xml Error: org.json4s.MappingException: Can't find ScalaSig for class sttp.tapir.json.json4s.Customer
Raw output
org.json4s.MappingException: Can't find ScalaSig for class sttp.tapir.json.json4s.Customer
	at org.json4s.reflect.package$.fail(package.scala:56)
	at org.json4s.reflect.ScalaSigReader$.$anonfun$7(ScalaSigReader.scala:81)
	at scala.Option.getOrElse(Option.scala:201)
	at org.json4s.reflect.ScalaSigReader$.findClass(ScalaSigReader.scala:81)
	at org.json4s.reflect.ScalaSigReader$.readConstructor(ScalaSigReader.scala:47)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.ctorParamType(Reflector.scala:162)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.$anonfun$6(Reflector.scala:152)
	at scala.collection.immutable.List.map(List.scala:246)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.ctorParamType(Reflector.scala:153)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.$anonfun$17(Reflector.scala:239)
	at scala.collection.immutable.ArraySeq.map(ArraySeq.scala:75)
	at scala.collection.immutable.ArraySeq.map(ArraySeq.scala:35)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.createConstructorDescriptors$$anonfun$3(Reflector.scala:247)
	at scala.collection.immutable.List.map(List.scala:246)
	at scala.collection.immutable.List.map(List.scala:79)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.createConstructorDescriptors(Reflector.scala:248)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.constructorsAndCompanion(Reflector.scala:180)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.result(Reflector.scala:271)
	at org.json4s.reflect.Reflector$.createDescriptorWithFormats(Reflector.scala:87)
	at org.json4s.reflect.Reflector$.describeWithFormats$$anonfun$1(Reflector.scala:70)
	at org.json4s.reflect.Memo.apply(Memo.scala:12)
	at org.json4s.reflect.Reflector$.describeWithFormats(Reflector.scala:70)
	at org.json4s.Extraction$.decomposeObject$1(Extraction.scala:143)
	at org.json4s.Extraction$.internalDecomposeWithBuilder(Extraction.scala:260)
	at org.json4s.Extraction$.addField$1(Extraction.scala:135)
	at org.json4s.Extraction$.decomposeObject$1(Extraction.scala:168)
	at org.json4s.Extraction$.internalDecomposeWithBuilder(Extraction.scala:260)
	at org.json4s.Extraction$.decomposeWithBuilder(Extraction.scala:84)
	at org.json4s.Extraction$.decompose(Extraction.scala:275)
	at org.json4s.jackson.JacksonSerialization.write(Serialization.scala:30)
	at sttp.tapir.json.json4s.TapirJson4s.json4sCodec$$anonfun$2(TapirJson4s.scala:31)
	at sttp.tapir.Codec$.anyString$$anonfun$2(Codec.scala:591)
	at sttp.tapir.Codec$$anon$8.encode(Codec.scala:555)
	at sttp.tapir.json.json4s.TapirJson4sTests.testEncodeDecode(TapirJson4sTests.scala:24)
	at sttp.tapir.json.json4s.TapirJson4sTests.testFun$proxy3$1(TapirJson4sTests.scala:45)
	at sttp.tapir.json.json4s.TapirJson4sTests.$init$$$anonfun$3(TapirJson4sTests.scala:43)
	at org.scalatest.Transformer.apply$$anonfun$1(Transformer.scala:22)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:31)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.Transformer.apply(Transformer.scala:22)
	at org.scalatest.Transformer.apply(Transformer.scala:21)
	at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1717)
	at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
	at org.scalatest.TestSuite.withFixture$(TestSuite.scala:138)
	at sttp.tapir.json.json4s.TapirJson4sTests.withFixture(TapirJson4sTests.scala:17)
	at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1723)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTest$$anonfun$1(AnyFlatSpecLike.scala:1727)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1727)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:51)
	at sttp.tapir.json.json4s.TapirJson4sTests.runTest(TapirJson4sTests.scala:17)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTests$$anonfun$1(AnyFlatSpecLike.scala:1785)
	at org.scalatest.SuperEngine.traverseSubNodes$1$$anonfun$1(Engine.scala:413)
	at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
	at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
	at scala.collection.immutable.List.foreach(List.scala:333)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:429)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1785)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:51)
	at sttp.tapir.json.json4s.TapirJson4sTests.runTests(TapirJson4sTests.scala:17)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:564)
	at sttp.tapir.json.json4s.TapirJson4sTests.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(TapirJson4sTests.scala:17)
	at org.scalatest.flatspec.AnyFlatSpecLike.run$$anonfun$1(AnyFlatSpecLike.scala:1830)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1830)
	at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:51)
	at sttp.tapir.json.json4s.TapirJson4sTests.run(TapirJson4sTests.scala:17)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.TestRunner.runTest$1(TestFramework.scala:153)
	at sbt.TestRunner.run(TestFramework.scala:168)
	at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.$anonfun$apply$1(TestFramework.scala:336)
	at sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:296)
	at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:336)
	at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:336)
	at sbt.TestFunction.apply(TestFramework.scala:348)
	at sbt.Tests$.processRunnable$1(Tests.scala:475)
	at sbt.Tests$.$anonfun$makeSerial$1(Tests.scala:481)
	at sbt.std.Transform$$anon$3.$anonfun$apply$2(Transform.scala:47)
	at sbt.std.Transform$$anon$4.work(Transform.scala:69)
	at sbt.Execute.$anonfun$submit$2(Execute.scala:283)
	at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:24)
	at sbt.Execute.work(Execute.scala:292)
	at sbt.Execute.$anonfun$submit$1(Execute.scala:283)
	at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
	at sbt.CompletionService$$anon$2.call(CompletionService.scala:65)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)

Check failure on line 31 in json/json4s/src/main/scala/sttp/tapir/json/json4s/TapirJson4s.scala

GitHub Actions / Test report for 3-JVM-11

sttp.tapir.json.json4s.TapirJson4sTests ► should encode to non-prettified Json

Failed test found in: json/json4s/target/jvm-3/test-reports/TEST-sttp.tapir.json.json4s.TapirJson4sTests.xml Error: org.json4s.MappingException: Can't find ScalaSig for class sttp.tapir.json.json4s.Customer
Raw output
org.json4s.MappingException: Can't find ScalaSig for class sttp.tapir.json.json4s.Customer
	at org.json4s.reflect.package$.fail(package.scala:56)
	at org.json4s.reflect.ScalaSigReader$.$anonfun$7(ScalaSigReader.scala:81)
	at scala.Option.getOrElse(Option.scala:201)
	at org.json4s.reflect.ScalaSigReader$.findClass(ScalaSigReader.scala:81)
	at org.json4s.reflect.ScalaSigReader$.readConstructor(ScalaSigReader.scala:47)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.ctorParamType(Reflector.scala:162)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.$anonfun$6(Reflector.scala:152)
	at scala.collection.immutable.List.map(List.scala:246)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.ctorParamType(Reflector.scala:153)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.$anonfun$17(Reflector.scala:239)
	at scala.collection.immutable.ArraySeq.map(ArraySeq.scala:75)
	at scala.collection.immutable.ArraySeq.map(ArraySeq.scala:35)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.createConstructorDescriptors$$anonfun$3(Reflector.scala:247)
	at scala.collection.immutable.List.map(List.scala:246)
	at scala.collection.immutable.List.map(List.scala:79)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.createConstructorDescriptors(Reflector.scala:248)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.constructorsAndCompanion(Reflector.scala:180)
	at org.json4s.reflect.Reflector$ClassDescriptorBuilder.result(Reflector.scala:271)
	at org.json4s.reflect.Reflector$.createDescriptorWithFormats(Reflector.scala:87)
	at org.json4s.reflect.Reflector$.describeWithFormats$$anonfun$1(Reflector.scala:70)
	at org.json4s.reflect.Memo.apply(Memo.scala:12)
	at org.json4s.reflect.Reflector$.describeWithFormats(Reflector.scala:70)
	at org.json4s.Extraction$.decomposeObject$1(Extraction.scala:143)
	at org.json4s.Extraction$.internalDecomposeWithBuilder(Extraction.scala:260)
	at org.json4s.Extraction$.decomposeWithBuilder(Extraction.scala:84)
	at org.json4s.Extraction$.decompose(Extraction.scala:275)
	at org.json4s.jackson.JacksonSerialization.write(Serialization.scala:30)
	at sttp.tapir.json.json4s.TapirJson4s.json4sCodec$$anonfun$2(TapirJson4s.scala:31)
	at sttp.tapir.Codec$.anyString$$anonfun$2(Codec.scala:591)
	at sttp.tapir.Codec$$anon$8.encode(Codec.scala:555)
	at sttp.tapir.json.json4s.TapirJson4sTests.testFun$proxy4$1(TapirJson4sTests.scala:52)
	at sttp.tapir.json.json4s.TapirJson4sTests.$init$$$anonfun$4(TapirJson4sTests.scala:48)
	at org.scalatest.Transformer.apply$$anonfun$1(Transformer.scala:22)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:31)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.Transformer.apply(Transformer.scala:22)
	at org.scalatest.Transformer.apply(Transformer.scala:21)
	at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1717)
	at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
	at org.scalatest.TestSuite.withFixture$(TestSuite.scala:138)
	at sttp.tapir.json.json4s.TapirJson4sTests.withFixture(TapirJson4sTests.scala:17)
	at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1723)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTest$$anonfun$1(AnyFlatSpecLike.scala:1727)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1727)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:51)
	at sttp.tapir.json.json4s.TapirJson4sTests.runTest(TapirJson4sTests.scala:17)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTests$$anonfun$1(AnyFlatSpecLike.scala:1785)
	at org.scalatest.SuperEngine.traverseSubNodes$1$$anonfun$1(Engine.scala:413)
	at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
	at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
	at scala.collection.immutable.List.foreach(List.scala:333)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:429)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1785)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:51)
	at sttp.tapir.json.json4s.TapirJson4sTests.runTests(TapirJson4sTests.scala:17)
	at org.scalatest.Suite.run(Suite.scala:1114)
	at org.scalatest.Suite.run$(Suite.scala:564)
	at sttp.tapir.json.json4s.TapirJson4sTests.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(TapirJson4sTests.scala:17)
	at org.scalatest.flatspec.AnyFlatSpecLike.run$$anonfun$1(AnyFlatSpecLike.scala:1830)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1830)
	at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:51)
	at sttp.tapir.json.json4s.TapirJson4sTests.run(TapirJson4sTests.scala:17)
	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
	at sbt.TestRunner.runTest$1(TestFramework.scala:153)
	at sbt.TestRunner.run(TestFramework.scala:168)
	at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.$anonfun$apply$1(TestFramework.scala:336)
	at sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:296)
	at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:336)
	at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:336)
	at sbt.TestFunction.apply(TestFramework.scala:348)
	at sbt.Tests$.processRunnable$1(Tests.scala:475)
	at sbt.Tests$.$anonfun$makeSerial$1(Tests.scala:481)
	at sbt.std.Transform$$anon$3.$anonfun$apply$2(Transform.scala:47)
	at sbt.std.Transform$$anon$4.work(Transform.scala:69)
	at sbt.Execute.$anonfun$submit$2(Execute.scala:283)
	at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:24)
	at sbt.Execute.work(Execute.scala:292)
	at sbt.Execute.$anonfun$submit$1(Execute.scala:283)
	at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
	at sbt.CompletionService$$anon$2.call(CompletionService.scala:65)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
}
implicit val schemaForJson4s: Schema[JValue] = Schema.any