Skip to content

Commit

Permalink
@AvroDefault & @ScalePrecision no more available for classes, as it i…
Browse files Browse the repository at this point in the history
…s a field config
  • Loading branch information
Chuckame committed Feb 8, 2024
1 parent f6b186e commit b6f93e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/com/github/avrokotlin/avro4k/annotations.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ annotation class AvroNamespace(val value: String)
annotation class AvroName(val value: String)

@SerialInfo
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.CLASS)
@Target(AnnotationTarget.PROPERTY)
annotation class ScalePrecision(val scale: Int = 2, val precision: Int = 8)

@SerialInfo
Expand Down Expand Up @@ -114,7 +114,7 @@ annotation class AvroAliases(val value: Array<String>)
annotation class AvroFixed(val size: Int)

@SerialInfo
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.CLASS)
@Target(AnnotationTarget.PROPERTY)
annotation class AvroDefault(
@Language("JSON") val value: String,
)
Expand Down

0 comments on commit b6f93e3

Please sign in to comment.