All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.swagger.validator.models.ValidationResponse Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy