Skip to content

Commit

Permalink
Merge pull request #1403 from disneystreaming/dfrancoeur/1401-doc-test
Browse files Browse the repository at this point in the history
Add changelog entry and test for bijection fix
  • Loading branch information
Baccata committed Feb 13, 2024
2 parents 8dc3775 + c758fb8 commit aaf8b1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit aaf8b1f

Please sign in to comment.