Skip to content

Commit 636df71

Browse files
authored
json ignore unknown for service mode config
1 parent 488b09d commit 636df71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/github/dockerjava/api/model/ServiceModeConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.github.dockerjava.api.model;
22

33
import com.fasterxml.jackson.annotation.JsonProperty;
4+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
45
import com.github.dockerjava.core.RemoteApiVersion;
56
import org.apache.commons.lang.builder.EqualsBuilder;
67
import org.apache.commons.lang.builder.HashCodeBuilder;
@@ -13,6 +14,7 @@
1314
/**
1415
* @since {@link RemoteApiVersion#VERSION_1_24}
1516
*/
17+
@JsonIgnoreProperties(ignoreUnknown = true)
1618
public class ServiceModeConfig implements Serializable {
1719
public static final long serialVersionUID = 1L;
1820

0 commit comments

Comments
 (0)