I am new to Scala. I am trying to unit test ASSERTIONS for UT/DQ check for Scala Spark Dataframe using ZIO library. Can anyone help me out here if the ...
I am new to Scala. I am trying to unit test ASSERTIONS for UT/DQ check for Scala Spark Dataframe using ZIO library. Can anyone help me out here if the ...
I have js code for upload json file with content from frontend js with using POST to scala zhttp backend. JS code: html for upload file and call ...
We build a REST microservice with Scala 3, ZIO 2, ZIO logging and Tapir. For context specific logging we want to use the MDC and set an attribute the ...
I have created tapir endpoint: val getEndpoint = endpoint.get .securityIn(auth.bearer[String]()) .in("players" / path[PlayerId]("playerId")) .i ...
I am a beginner in the Scala / ZIO 2 world, and I am trying to write some tests for a simple service. so I have this method: def validate(id: String ...
When i try call zio.Runtime.default.unsafeRun(someStuff()) unsafeRun turns red so i cant call It I need to take off all the wrappers and get a ...
scala how to wrap this response to yield instead of val? I have get method realization with vals, how can I refactor it with for yield structure ...
I want learn methods refineXXX of zio library. For this purpose I write simple code When I run it in IDEA worksheet I see output: and expect fai ...
I am using ZIO 2 and ZIO Test with plain testcontainers-scala. The test looks like this: I want to suppress the container logs going to System out ...
Hi I've below ZIO ConsoleIO test. The code is on this github here. When I run the test I get the below error - ExampleSpec / greet says hel ...
Have a question regarding Prometheus metrics in Tapir and ZIO. I have a simple code: and it works correct when I call localhost:8080/metrics, I see ...
This is my model class: final case class Organization( id: UUID, name: String ) My Queries class looks like this: case class Queries( ...
I have a simple method which returns Future[Either[Throwable, MyValue]]. Now I would like to convert it to ZIO. I created: But it didn't work witho ...
I'm using Zio Json library to attempt to decode the following: As Scala doesn't allow variable names to start with uppercase, I'm getting a Not Fou ...
Is this the most idiomatic way to test a failing effect? I saw this old question (How to test an exception case with zio-test), but I am unsure if ...
I have a ZIO that looks like this: and I need to assert the String, that is in that ZIO with another plain String. So my question is: How can I a ...
do you know how I can return custom object as zio-http response? I created simple class: and now I would like to return this CustomerResponse as Ht ...
What happened to Accessible[XYZ] in Zio 2? Used and mentioned by Kit here: https://youtu.be/yXcqjQ7Kcwk?t=681 What are the recommended new patterns? ...
I am trying to use the Cats Mongo implementation (https://github.com/Kirill5k/mongo4cats) in ZIO 2. There is a chapter in ZIO 2's doc (https://zio.dev ...
Let us suppose, we have to create the OddList[+T] which contains only odd number of elements. Now can we do something like this if there is no cond ...