Skip to content

Commit

Permalink
[BABEL-1305] - remove reasonCode from entity
Browse files Browse the repository at this point in the history
  • Loading branch information
lazaki committed May 6, 2020
1 parent 943ba1f commit ad84c36
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 25 deletions.
7 changes: 1 addition & 6 deletions docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -976,19 +976,14 @@
}
},
"Cancellation" : {
"required" : [ "action", "identifier", "reasonCode" ],
"required" : [ "action", "identifier" ],
"type" : "object",
"properties" : {
"identifier" : {
"$ref" : "#/components/schemas/Identifier"
},
"action" : {
"$ref" : "#/components/schemas/Action"
},
"reasonCode" : {
"type" : "integer",
"description" : "A code uniquely identifying the cancellation reason",
"format" : "int32"
}
}
}
Expand Down
8 changes: 1 addition & 7 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -469,17 +469,11 @@
},
"identifier": {
"$ref": "#/definitions/Identifier"
},
"reasonCode": {
"description": "A code uniquely identifying the cancellation reason",
"format": "int32",
"type": "integer"
}
},
"required": [
"action",
"identifier",
"reasonCode"
"identifier"
],
"type": "object"
},
Expand Down
12 changes: 0 additions & 12 deletions src/main/java/ch/baloise/corellia/api/entities/Cancellation.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package ch.baloise.corellia.api.entities;

import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import java.io.Serializable;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
Expand All @@ -17,10 +16,6 @@ public class Cancellation implements Serializable {
@Valid
private Action action;

@NotNull
@JsonPropertyDescription("A code uniquely identifying the cancellation reason")
private Integer reasonCode;

public Identifier getIdentifier() {
return identifier;
}
Expand All @@ -37,11 +32,4 @@ public void setAction(Action action) {
this.action = action;
}

public Integer getReasonCode() {
return reasonCode;
}

public void setReasonCode(Integer reasonCode) {
this.reasonCode = reasonCode;
}
}

0 comments on commit ad84c36

Please sign in to comment.