diff --git a/docs/openapi.json b/docs/openapi.json index 1162ef6..9a4876d 100644 --- a/docs/openapi.json +++ b/docs/openapi.json @@ -976,7 +976,7 @@ } }, "Cancellation" : { - "required" : [ "action", "identifier", "reasonCode" ], + "required" : [ "action", "identifier" ], "type" : "object", "properties" : { "identifier" : { @@ -984,11 +984,6 @@ }, "action" : { "$ref" : "#/components/schemas/Action" - }, - "reasonCode" : { - "type" : "integer", - "description" : "A code uniquely identifying the cancellation reason", - "format" : "int32" } } } diff --git a/docs/swagger.json b/docs/swagger.json index c019249..3d0aed1 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -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" }, diff --git a/src/main/java/ch/baloise/corellia/api/entities/Cancellation.java b/src/main/java/ch/baloise/corellia/api/entities/Cancellation.java index 80f623b..5988b48 100644 --- a/src/main/java/ch/baloise/corellia/api/entities/Cancellation.java +++ b/src/main/java/ch/baloise/corellia/api/entities/Cancellation.java @@ -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; @@ -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; } @@ -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; - } }