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

com.github.fge.jsonschema.messages.SyntaxMessages Maven / Gradle / Ivy

There is a newer version: 2.2.6
Show newest version
/*
 * Copyright (c) 2013, Francis Galiegue 
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the Lesser GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * Lesser GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see .
 */

package com.github.fge.jsonschema.messages;

public enum SyntaxMessages
{
    NOT_A_SCHEMA("JSON value is not a JSON Schema: not an object"),
    UNKNOWN_KEYWORDS("unknown keyword(s) found; ignored"),
    INCORRECT_TYPE("value has incorrect type"),
    INTEGER_TOO_LARGE("integer value is too large"),
    INTEGER_IS_NEGATIVE("integer value must be positive"),
    EXCLUSIVEMINIMUM("exclusiveMinimum must be paired with minimum"),
    EXCLUSIVEMAXIMUM("exclusiveMaximum must be paired with maximum"),
    INVALID_REGEX_MEMBER_NAME("member name is not a valid ECMA 262 regular expression"),
    INVALID_REGEX_VALUE("value is not a valid ECMA 262 regular expression"),
    INVALID_URI("string is not a valid URI"),
    URI_NOT_NORMALIZED("URI is not normalized"),
    ELEMENTS_NOT_UNIQUE("array must not contain duplicate elements"),
    EMPTY_ARRAY("array must have at least one element"),
    ILLEGAL_DIVISOR("divisor must be strictly greater than zero"),
    INCORRECT_ELEMENT_TYPE("array element has incorrect type"),
    INCORRECT_DEPENDENCY_VALUE("dependency value has incorrect type"),
    INCORRECT_PRIMITIVE_TYPE("incorrect primitive type"),
    DRAFTV3_PROPERTIES_REQUIRED("\"required\" attribute has wrong type"),
    EXTENDS_EMPTY_ARRAY("no elements in \"extends\" array"),
    INVALID_SCHEMA("invalid schema, cannot continue"),
    ;

    private final String message;

    SyntaxMessages(final String message)
    {
        this.message = message;
    }

    @Override
    public String toString()
    {
        return message;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy