Skip to content

Commit 9b1a8fe

Browse files
chinanwuKostyaSha
authored andcommitted
Add annotation to ServiceGlobalModeOptions to json ignore unknowns (#1221)
* Add annotation to ServiceGlobalModeOptions This fixes the "No serializer found" error thrown when trying to use mode = global. * Import
1 parent 1c5a9e1 commit 9b1a8fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

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

3+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
34
import com.github.dockerjava.core.RemoteApiVersion;
45
import org.apache.commons.lang.builder.EqualsBuilder;
56
import org.apache.commons.lang.builder.HashCodeBuilder;
@@ -11,6 +12,7 @@
1112
/**
1213
* @since {@link RemoteApiVersion#VERSION_1_24}
1314
*/
15+
@JsonIgnoreProperties(ignoreUnknown = true)
1416
public class ServiceGlobalModeOptions implements Serializable {
1517
public static final long serialVersionUID = 1L;
1618

0 commit comments

Comments
 (0)