/*
 * Copyright (c) 2012-2018 Red Hat, Inc.
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *   Red Hat, Inc. - initial API and implementation
 */
package org.eclipse.che.api.workspace.server.wsplugins.model;

import java.util.HashMap;
import java.util.Map;

/** @author Oleksandr Garagatyi */
public class PluginMeta {
  private String name = null;
  private String id = null;
  private String type = null;
  private String version = null;
  private String title = null;
  private String description = null;
  private String icon = null;
  private String url = null;
  private Map<String, String> attributes = new HashMap<>();

  public PluginMeta name(String name) {
    this.name = name;
    return this;
  }

  public String getName() {
    return name;
  }

  public PluginMeta id(String id) {
    this.id = id;
    return this;
  }

  public String getId() {
    return id;
  }

  public PluginMeta type(String type) {
    this.type = type;
    return this;
  }

  public String getType() {
    return type;
  }

  public PluginMeta version(String version) {
    this.version = version;
    return this;
  }

  public String getVersion() {
    return version;
  }

  public PluginMeta url(String url) {
    this.url = url;
    return this;
  }

  public String getUrl() {
    return url;
  }

  public PluginMeta title(String title) {
    this.title = title;
    return this;
  }

  public String getTitle() {
    return title;
  }

  public PluginMeta icon(String icon) {
    this.icon = icon;
    return this;
  }

  public String getIcon() {
    return icon;
  }

  public PluginMeta description(String description) {
    this.description = description;
    return this;
  }

  public String getDescription() {
    return description;
  }

  public Map<String, String> getAttributes() {
    if (attributes == null) {
      attributes = new HashMap<>();
    }
    return attributes;
  }

  public PluginMeta attributes(Map<String, String> attributes) {
    this.attributes = attributes;
    return this;
  }
}

@@ -398,16 +398,78 @@
 model;%0A%0A
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;%0A
 import j
@@ -544,16 +544,60 @@
 atyi */%0A
+@JsonIgnoreProperties(ignoreUnknown = true)%0A
 public c

Add @JsonIgnoreProperties into PluginMeta to allow more fields in meta.yaml (#12538)