@Override public RetCode validateSchema(final SyntaxValidator validator, final String fileName, final JsonNode node) throws IOException { final ListProcessingReport report = (ListProcessingReport) validator.validateSchema(node); final boolean success = report.isSuccess(); System.out.println("--- BEGIN " + fileName + "---"); System.out.println("validation: " + (success ? "SUCCESS" : "FAILURE")); if (!success) System.out.println(JacksonUtils.prettyPrint(report.asJson())); System.out.println("--- END " + fileName + "---"); return success ? ALL_OK : SCHEMA_SYNTAX_ERROR; }
@Override public RetCode validateInstance(final JsonSchema schema, final String fileName, final JsonNode node) throws IOException, ProcessingException { final ListProcessingReport report = (ListProcessingReport) schema.validate(node, true); final boolean success = report.isSuccess(); System.out.println("--- BEGIN " + fileName + "---"); System.out.println("validation: " + (success ? "SUCCESS" : "FAILURE")); if (!success) System.out.println(JacksonUtils.prettyPrint(report .asJson())); System.out.println("--- END " + fileName + "---"); return success ? ALL_OK : VALIDATION_FAILURE; } },
processor.process(subReport, newData); fullReport.put(ptr.toString(), subReport.asJson()); if (subReport.isSuccess()) nrSuccess++;
processor.process(subReport, newData); fullReport.put(ptr.toString(), subReport.asJson()); if (subReport.isSuccess()) nrSuccess++;
processor.process(subReport, newData); fullReport.put(ptr.toString(), subReport.asJson()); if (subReport.isSuccess()) nrSuccess++;
processor.process(subReport, newData); fullReport.put(ptr.toString(), subReport.asJson()); if (subReport.isSuccess()) nrSuccess++;
processor.process(subReport, newData); fullReport.put(ptr.toString(), subReport.asJson()); if (subReport.isSuccess()) nrSuccess++;
public DescriptorValidationResult(ListProcessingReport report) { this(true, report.isSuccess(), report.asJson().toString(), report.toString()); this.report = report; }
public DescriptorValidationResult(ListProcessingReport report) { this(true, report.isSuccess(), report.asJson().toString(), report.toString()); this.report = report; }
if (!subReport.isSuccess()) { report.error(msg(data, bundle, "err.swaggerv2.discriminator.fail") .putArgument("schema", ptr.toString())
if ((processingReport != null) && !processingReport.isSuccess()) { return StreamSupport.stream(processingReport.spliterator(), false) .map(pm -> getProcessingMessage(pm, null, keyPrefix))