This is an automated email from the ASF dual-hosted git repository.
zaynt4606 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/celeborn.git
The following commit(s) were added to refs/heads/main by this push:
new cb5803315c [CELEBORN-2404] Fix required field typo in
SendWorkerEventRequest schema (#3783)
cb5803315c is described below
commit cb5803315c1d87523c9eeef38a69196a33f3e503
Author: yew1eb <[email protected]>
AuthorDate: Thu Aug 6 11:42:04 2026 +0800
[CELEBORN-2404] Fix required field typo in SendWorkerEventRequest schema
(#3783)
* [CELEBORN-2404] Fix required field typo in SendWorkerEventRequest schema
* [CELEBORN-2404] Re-generate openapi client code
---
.../org/apache/celeborn/rest/v1/model/SendWorkerEventRequest.java | 6 +++---
openapi/openapi-client/src/main/openapi3/master_rest_v1.yaml | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/openapi/openapi-client/src/main/java/org/apache/celeborn/rest/v1/model/SendWorkerEventRequest.java
b/openapi/openapi-client/src/main/java/org/apache/celeborn/rest/v1/model/SendWorkerEventRequest.java
index c977c14783..eb02a4dd6f 100644
---
a/openapi/openapi-client/src/main/java/org/apache/celeborn/rest/v1/model/SendWorkerEventRequest.java
+++
b/openapi/openapi-client/src/main/java/org/apache/celeborn/rest/v1/model/SendWorkerEventRequest.java
@@ -136,9 +136,9 @@ public class SendWorkerEventRequest {
* The workers to send the event.
* @return workers
*/
- @javax.annotation.Nullable
+ @javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_WORKERS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public List<WorkerId> getWorkers() {
return workers;
@@ -146,7 +146,7 @@ public class SendWorkerEventRequest {
@JsonProperty(JSON_PROPERTY_WORKERS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setWorkers(List<WorkerId> workers) {
this.workers = workers;
}
diff --git a/openapi/openapi-client/src/main/openapi3/master_rest_v1.yaml
b/openapi/openapi-client/src/main/openapi3/master_rest_v1.yaml
index c76b5f0cfc..72e8a4e821 100644
--- a/openapi/openapi-client/src/main/openapi3/master_rest_v1.yaml
+++ b/openapi/openapi-client/src/main/openapi3/master_rest_v1.yaml
@@ -1301,7 +1301,7 @@ components:
$ref: '#/components/schemas/WorkerId'
required:
- eventType
- - worker
+ - workers
RatisElectionTransferRequest:
type: object