org.openapi4j.parser.model.v3.AbsExtendedRefOpenApiSchema Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openapi-parser Show documentation
Show all versions of openapi-parser Show documentation
openapi4j schema parser & validator
package org.openapi4j.parser.model.v3;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.openapi4j.parser.model.AbsRefOpenApiSchema;
import org.openapi4j.parser.model.OpenApiSchema;
import java.util.HashMap;
import java.util.Map;
public abstract class AbsExtendedRefOpenApiSchema> extends AbsRefOpenApiSchema {
@JsonIgnore
private Map extensions;
// Extensions
@JsonAnyGetter
public Map getExtensions() {
return extensions;
}
public void setExtensions(Map extensions) {
this.extensions = extensions;
}
@JsonAnySetter
public void setExtension(String name, Object value) {
if (extensions == null) {
extensions = new HashMap<>();
}
extensions.put(name, value);
}
}