org.openapi4j.parser.model.v3.Discriminator 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 org.openapi4j.parser.model.AbsOpenApiSchema;
import java.util.Map;
public class Discriminator extends AbsOpenApiSchema {
private Map mapping;
private String propertyName;
public String getPropertyName() {
return propertyName;
}
public Discriminator setPropertyName(String propertyName) {
this.propertyName = propertyName;
return this;
}
public Map getMapping() {
return mapping;
}
public Discriminator setMapping(Map mapping) {
this.mapping = mapping;
return this;
}
@Override
public Discriminator copy() {
Discriminator copy = new Discriminator();
copy.setPropertyName(getPropertyName());
copy.setMapping(copySimpleMap(getMapping()));
return copy;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy