Skip to content

Commit

Permalink
[#186091347] Reorganize schemas for swagger
Browse files Browse the repository at this point in the history
[#186091347] Reorganize schemas for swagger
  • Loading branch information
Sean-DNAstack authored Oct 31, 2023
2 parents 612e36d + 47b6c96 commit 8758465
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/com/dnastack/wes/api/RunFileDeletion.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package com.dnastack.wes.api;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonUnwrapped;

public record RunFileDeletion(@JsonUnwrapped RunFile runFile, DeletionState state, @JsonUnwrapped ErrorResponse errorResponse) {
public record RunFileDeletion(@JsonUnwrapped RunFile runFile, DeletionState state, @JsonProperty("error_response") ErrorResponse errorResponse) {

public enum DeletionState {
DELETED,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public RunFileDeletions deleteRunFiles(String runId, boolean async) {

public RunFileDeletion deleteRunFileAsync(RunFile runFile) {
CompletableFuture.runAsync(() -> deleteRunFile(runFile), defaultAsyncOperationExecutor);
return new RunFileDeletion(runFile, RunFileDeletion.DeletionState.ASYNC,null);
return new RunFileDeletion(runFile, RunFileDeletion.DeletionState.ASYNC, null);
}

public RunFileDeletion deleteRunFile(RunFile runFile) {
Expand Down
2 changes: 2 additions & 0 deletions workflow_execution_service.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,8 @@ definitions:
- FAILED: An error occurred during the process of deleting the file.
error_response:
$ref: '#/definitions/ErrorResponse'
WorkflowTypeVersion:
type: object
properties:
Expand Down

0 comments on commit 8758465

Please sign in to comment.