diff --git a/CHANGELOG.md b/CHANGELOG.md index a00a5f818..cbe3ade77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # 0.18.9 * Supports error responses with `@httpResponseCode` fields. +* Fix in Bijection#identity which caused and infinite recursion, fixed in [1401](https://github.com/disneystreaming/smithy4s/pull/1401) # 0.18.8 diff --git a/modules/bootstrapped/test/src/smithy4s/schema/SchemaSpec.scala b/modules/bootstrapped/test/src/smithy4s/schema/SchemaSpec.scala index 312013cc2..26d93f655 100644 --- a/modules/bootstrapped/test/src/smithy4s/schema/SchemaSpec.scala +++ b/modules/bootstrapped/test/src/smithy4s/schema/SchemaSpec.scala @@ -37,4 +37,9 @@ final class SchemaSpec extends FunSuite { assertEquals(sch.getDefaultValue, None) } + test("bijection - identity") { + val sut = Bijection.identity[String] + val str = "value" + assertEquals(sut.to(sut.from(str)), str) + } }