Package com.github.fge.jsonschema.main.cli

Examples of com.github.fge.jsonschema.main.cli.RetCode


    private void proceed(final Reporter reporter, final List<File> files,
        final boolean isSyntax)
        throws IOException, ProcessingException
    {

        final RetCode retCode = isSyntax ? doSyntax(reporter, files)
            : doValidation(reporter, files);
        System.exit(retCode.get());
    }
View Full Code Here


    }

    private RetCode doSyntax(final Reporter reporter, final List<File> files)
        throws IOException
    {
        RetCode retcode, ret = ALL_OK;
        String fileName;
        JsonNode node;

        for (final File file: files) {
            fileName = file.toString();
View Full Code Here

            return SCHEMA_SYNTAX_ERROR;
        }

        final JsonSchema schema = factory.getJsonSchema(uri);

        RetCode ret = ALL_OK, retcode;

        for (final File file: files) {
            node = MAPPER.readTree(file);
            retcode = reporter.validateInstance(schema, file.toString(), node);
            if (retcode != ALL_OK)
View Full Code Here

TOP

Related Classes of com.github.fge.jsonschema.main.cli.RetCode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.