-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(avro schema): extract AvroSchemaLogicalType
- Loading branch information
Showing
3 changed files
with
46 additions
and
43 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
34 changes: 34 additions & 0 deletions
34
asyncapi-core/src/main/java/com/asyncapi/v3/schema/avro/v1/_9_0/AvroSchemaLogicalType.java
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,34 @@ | ||
package com.asyncapi.v3.schema.avro.v1._9_0; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public class AvroSchemaLogicalType { | ||
|
||
@JsonProperty("decimal") | ||
public static final String DECIMAL = "decimal"; | ||
|
||
@JsonProperty("big-decimal") | ||
public static final String BIG_DECIMAL = "big-decimal"; | ||
|
||
@JsonProperty("uuid") | ||
public static final String UUID = "uuid"; | ||
|
||
@JsonProperty("date") | ||
public static final String DATE = "date"; | ||
|
||
@JsonProperty("time-millis") | ||
public static final String TIME_MILLIS = "time-millis"; | ||
|
||
@JsonProperty("time-micros") | ||
public static final String TIME_MICROS = "time-micros"; | ||
|
||
@JsonProperty("timestamp-millis") | ||
public static final String TIMESTAMP_MILLIS = "timestamp-millis"; | ||
|
||
@JsonProperty("timestamp-micros") | ||
public static final String TIMESTAMP_MICROS = "timestamp-micros"; | ||
|
||
@JsonProperty("duration") | ||
public static final String DURATION = "duration"; | ||
|
||
} |
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