-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core/coral): Make OffsetDetails properties required, remove prett…
…ier check on openapi.yaml Signed-off-by: Mathieu Anderson <[email protected]>
- Loading branch information
Mathieu Anderson
committed
Nov 23, 2023
1 parent
0981b8b
commit 3dc63fa
Showing
7 changed files
with
26 additions
and
25 deletions.
There are no files selected for viewing
9 changes: 5 additions & 4 deletions
9
cluster-api/src/main/java/io/aiven/klaw/clusterapi/models/consumergroup/OffsetDetails.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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
package io.aiven.klaw.clusterapi.models.consumergroup; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class OffsetDetails { | ||
private String topicPartitionId; | ||
@NotNull private String topicPartitionId; | ||
|
||
private String currentOffset; | ||
@NotNull private String currentOffset; | ||
|
||
private String endOffset; | ||
@NotNull private String endOffset; | ||
|
||
private String lag; | ||
@NotNull private String lag; | ||
} |
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
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
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
9 changes: 5 additions & 4 deletions
9
core/src/main/java/io/aiven/klaw/model/cluster/consumergroup/OffsetDetails.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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
package io.aiven.klaw.model.cluster.consumergroup; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class OffsetDetails { | ||
private String topicPartitionId; | ||
@NotNull private String topicPartitionId; | ||
|
||
private String currentOffset; | ||
@NotNull private String currentOffset; | ||
|
||
private String endOffset; | ||
@NotNull private String endOffset; | ||
|
||
private String lag; | ||
@NotNull private String lag; | ||
} |
9 changes: 5 additions & 4 deletions
9
core/src/main/java/io/aiven/klaw/model/response/OffsetDetails.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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
package io.aiven.klaw.model.response; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class OffsetDetails { | ||
private String topicPartitionId; | ||
@NotNull private String topicPartitionId; | ||
|
||
private String currentOffset; | ||
@NotNull private String currentOffset; | ||
|
||
private String endOffset; | ||
@NotNull private String endOffset; | ||
|
||
private String lag; | ||
@NotNull private String lag; | ||
} |
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