Skip to content

Commit

Permalink
Fix ConfigSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
jeejeeone committed Mar 21, 2024
1 parent 011fef6 commit 77ca4c2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion tools/src/main/scala/caliban/tools/compiletime/Config.scala
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ trait Config {
| splitFiles = $splitFiles,
| enableFmt = $enableFmt,
| extensibleEnums = $extensibleEnums,
| supportIsRepeatable = $supportIsRepeatable
| supportIsRepeatable = $supportIsRepeatable,
| excludeDeprecated = $excludeDeprecated
|)
""".stripMargin.trim
}
Expand Down
14 changes: 9 additions & 5 deletions tools/src/test/scala/caliban/tools/compiletime/ConfigSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ object ConfigSpec extends ZIOSpecDefault {
splitFiles = true,
enableFmt = false,
extensibleEnums = true,
supportIsRepeatable = true
supportIsRepeatable = true,
excludeDeprecated = true
)

private val toCalibanCommonSettingsSpec =
Expand All @@ -44,7 +45,7 @@ object ConfigSpec extends ZIOSpecDefault {
supportIsRepeatable = Some(true),
addDerives = None,
envForDerives = None,
excludeDeprecated = None
excludeDeprecated = Some(true)
)
)
)
Expand All @@ -66,7 +67,8 @@ object ConfigSpec extends ZIOSpecDefault {
| splitFiles = false,
| enableFmt = true,
| extensibleEnums = false,
| supportIsRepeatable = true
| supportIsRepeatable = true,
| excludeDeprecated = false
|)
""".stripMargin.trim
)
Expand All @@ -85,7 +87,8 @@ object ConfigSpec extends ZIOSpecDefault {
| splitFiles = true,
| enableFmt = false,
| extensibleEnums = true,
| supportIsRepeatable = true
| supportIsRepeatable = true,
| excludeDeprecated = true
|)
""".stripMargin.trim
)
Expand All @@ -106,7 +109,8 @@ object ConfigSpec extends ZIOSpecDefault {
imports = List.empty,
splitFiles = false,
enableFmt = true,
extensibleEnums = false
extensibleEnums = false,
excludeDeprecated = false
)
)
)
Expand Down

0 comments on commit 77ca4c2

Please sign in to comment.