Skip to content

Commit

Permalink
fix field style compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Ковалев Георгий Алексеевич committed Sep 23, 2024
1 parent 78cc34b commit e1ddfc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ enum FieldStyle {
case capitalize, uncapitalize, lowercase, uppercase
case kebabCase, lowerKebabCase, upperKebabCase, capitalizedKebabCase
case snakeCase, lowerSnakeCase, upperSnakeCase, capitalizedSnakeCase

case kebabcase, lowerKebabcase, upperKebabcase
case snakecase, lowerSnakecase, upperSnakecase
}
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,9 @@ class SemiautoReaderDerivationTest extends AnyFlatSpec with Matchers {

it should "derive reader for fieldStyle from description 3" in {
given JsonReader[CamelCaseNames] = JsonReader.derived[CamelCaseNames] {
ReaderDerivationConfig.empty.withFieldStyle(tethys.derivation.builder.FieldStyle.lowerSnakecase)
ReaderDerivationConfig.empty.withFieldStyle(
tethys.derivation.builder.FieldStyle.lowerSnakecase
)
}

read[CamelCaseNames](
Expand Down

0 comments on commit e1ddfc9

Please sign in to comment.