Skip to content

Commit

Permalink
Add annotation to ServiceGlobalModeOptions to json ignore unknowns (#…
Browse files Browse the repository at this point in the history
…1221)

* Add annotation to ServiceGlobalModeOptions

This fixes the "No serializer found" error thrown when trying to use mode = global.

* Import
  • Loading branch information
chinanwu authored and KostyaSha committed Jul 16, 2019
1 parent 1c5a9e1 commit 9b1a8fe
Showing 1 changed file with 2 additions and 0 deletions.
@@ -1,5 +1,6 @@
package com.github.dockerjava.api.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.github.dockerjava.core.RemoteApiVersion;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
Expand All @@ -11,6 +12,7 @@
/**
* @since {@link RemoteApiVersion#VERSION_1_24}
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class ServiceGlobalModeOptions implements Serializable {
public static final long serialVersionUID = 1L;

Expand Down

0 comments on commit 9b1a8fe

Please sign in to comment.