Skip to content

Commit

Permalink
update test with new semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
aajtodd committed Oct 10, 2023
1 parent eaa4690 commit c4513c2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class ErrorCorrectionTest {
assertEquals(emptyMap(), actual.mapValue)

// should still be nullable due to `@clientOptional` but due to `@required` we actually use the `@default`
assertEquals("model default", actual.clientOptionalWithDefault)
assertNull(actual.clientOptionalWithDefault)

// error correction should apply recursively
assertEquals("", actual.nested.a)
Expand Down Expand Up @@ -75,7 +75,7 @@ class ErrorCorrectionTest {
assertEquals(emptyMap(), actual.mapValue)

// should still be nullable due to `@clientOptional` but due to `@required` we actually use the `@default`
assertEquals("model default", actual.clientOptionalWithDefault)
assertNull(actual.clientOptionalWithDefault)

// nested struct and union values should be null for client careful mode
assertNull(actual.nested)
Expand Down

0 comments on commit c4513c2

Please sign in to comment.