com.deepoove.swagger.diff.model.ChangedEndpoint Maven / Gradle / Ivy
package com.deepoove.swagger.diff.model;
import java.util.Map;
import io.swagger.models.HttpMethod;
import io.swagger.models.Operation;
public class ChangedEndpoint implements Changed{
private String pathUrl;
private Map newOperations;
private Map missingOperations;
private Map changedOperations;
public Map getNewOperations() {
return newOperations;
}
public void setNewOperations(Map newOperations) {
this.newOperations = newOperations;
}
public Map getMissingOperations() {
return missingOperations;
}
public void setMissingOperations(
Map missingOperations) {
this.missingOperations = missingOperations;
}
public Map getChangedOperations() {
return changedOperations;
}
public void setChangedOperations(
Map changedOperations) {
this.changedOperations = changedOperations;
}
public String getPathUrl() {
return pathUrl;
}
public void setPathUrl(String pathUrl) {
this.pathUrl = pathUrl;
}
public boolean isDiff() {
// newOperations.isEmpty()
// || !missingOperations.isEmpty()
// ||
return !changedOperations.isEmpty();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy