Skip to content

Commit

Permalink
chore: deprecate AvroNamespace, AvroName and AvroInline annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuckame committed Jan 29, 2024
1 parent 1723ebc commit ca1a5e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/kotlin/com/github/avrokotlin/avro4k/annotations.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ annotation class AvroProp(val key: String, val value: String)
annotation class AvroJsonProp(val key: String, @Language("JSON") val jsonValue: String)

@SerialInfo
@Deprecated(message = "Will be removed in the next major release in favour of @SerialName", replaceWith = ReplaceWith("@SerialName(\"namespace.YourClass\")"))
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.CLASS)
annotation class AvroNamespace(val value: String)

@SerialInfo
@Deprecated(message = "Will be removed in the next major release in favour of @SerialName", replaceWith = ReplaceWith("@SerialName(\"namespace.YourClass\")"))
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.CLASS)
annotation class AvroName(val value: String)

Expand All @@ -26,6 +28,7 @@ annotation class AvroName(val value: String)
annotation class ScalePrecision(val scale: Int, val precision: Int)

@SerialInfo
@Deprecated(message = "Will be removed in the next major release in favour of kotlin value class")
@Target(AnnotationTarget.CLASS)
annotation class AvroInline

Expand Down

0 comments on commit ca1a5e2

Please sign in to comment.