-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #332 from Equwece/generic_configuration
Add JsonConfiguration processing
- Loading branch information
Showing
7 changed files
with
385 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
modules/core/src/main/scala-3/tethys/JsonConfiguration.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package tethys | ||
|
||
trait JsonConfiguration: | ||
def fieldStyle(fieldStyle: FieldStyle): JsonConfiguration | ||
|
||
def strict: JsonConfiguration | ||
|
||
object JsonConfiguration: | ||
@scala.annotation.compileTimeOnly( | ||
"JsonConfiguration should be declared as inline given" | ||
) | ||
def default: JsonConfiguration = throw IllegalAccessException() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.