@@ -35,6 +35,7 @@ import io.kotest.matchers.types.shouldBeInstanceOf
3535import io.ktor.http.HttpStatusCode
3636import kotlin.time.Duration.Companion.seconds
3737import kotlinx.coroutines.withTimeout
38+ import kotlinx.serialization.ExperimentalSerializationApi
3839import kotlinx.serialization.Serializable
3940import kotlinx.serialization.json.JsonPrimitive
4041import org.junit.Test
@@ -44,6 +45,7 @@ import org.junit.Test
4445internal class UnarySnapshotTests {
4546 private val testTimeout = 5 .seconds
4647
48+ @OptIn(ExperimentalSerializationApi ::class )
4749 @Test
4850 fun `short reply` () =
4951 goldenUnaryFile(" success-basic-reply-short.json" ) {
@@ -57,6 +59,7 @@ internal class UnarySnapshotTests {
5759 }
5860 }
5961
62+ @OptIn(ExperimentalSerializationApi ::class )
6063 @Test
6164 fun `long reply` () =
6265 goldenUnaryFile(" success-basic-reply-long.json" ) {
@@ -219,6 +222,7 @@ internal class UnarySnapshotTests {
219222 }
220223 }
221224
225+ @OptIn(ExperimentalSerializationApi ::class )
222226 @Test
223227 fun `properly translates json text` () =
224228 goldenUnaryFile(" success-constraint-decoding-json.json" ) {
@@ -305,6 +309,7 @@ internal class UnarySnapshotTests {
305309 }
306310 }
307311
312+ @OptIn(ExperimentalSerializationApi ::class )
308313 @Test
309314 fun `function call contains null param` () =
310315 goldenUnaryFile(" success-function-call-null.json" ) {
@@ -317,6 +322,7 @@ internal class UnarySnapshotTests {
317322 }
318323 }
319324
325+ @OptIn(ExperimentalSerializationApi ::class )
320326 @Test
321327 fun `function call contains json literal` () =
322328 goldenUnaryFile(" success-function-call-json-literal.json" ) {
@@ -335,6 +341,7 @@ internal class UnarySnapshotTests {
335341 }
336342 }
337343
344+ @OptIn(ExperimentalSerializationApi ::class )
338345 @Test
339346 fun `function call has no arguments field` () =
340347 goldenUnaryFile(" success-function-call-empty-arguments.json" ) {
0 commit comments