io.swagger.validator.models.ValidationResponse Maven / Gradle / Ivy
package io.swagger.validator.models;
import java.util.ArrayList;
import java.util.List;
public class ValidationResponse {
private List messages;
private List schemaValidationMessages = null;
public void addValidationMessage(SchemaValidationError schemaValidationError) {
if(schemaValidationMessages == null) {
this.schemaValidationMessages = new ArrayList();
}
this.schemaValidationMessages.add(schemaValidationError);
}
public void addMessage(String message) {
if(this.messages == null) {
this.messages = new ArrayList();
}
this.messages.add(message);
}
public List getMessages() {
return messages;
}
public void setMessages(List messages) {
this.messages = messages;
}
public List getSchemaValidationMessages() {
return schemaValidationMessages;
}
public void setSchemaValidationMessages(List validationMessages) {
this.schemaValidationMessages = validationMessages;
}
}