org.openapi4j.parser.model.v3.AbsExtendedOpenApiSchema 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 org.openapi4j.parser.model.AbsOpenApiSchema;
import org.openapi4j.parser.model.OpenApiSchema;
import java.util.HashMap;
import java.util.Map;
public abstract class AbsExtendedOpenApiSchema> extends AbsOpenApiSchema {
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);
}
}