Class JsonConfigurationErrorReporter
java.lang.Object
io.micronaut.jsonschema.configuration.validator.report.JsonConfigurationErrorReporter
- All Implemented Interfaces:
ConfigurationErrorReporter
public final class JsonConfigurationErrorReporter
extends Object
implements ConfigurationErrorReporter
Reports errors as JSON.
-
Constructor Summary
ConstructorsConstructorDescriptionJsonConfigurationErrorReporter(io.micronaut.json.JsonMapper jsonMapper, OutputStream output) -
Method Summary
Modifier and TypeMethodDescriptionvoidreport(Set<ConfigurationError> errors) Report configuration validation errors.
-
Constructor Details
-
JsonConfigurationErrorReporter
- Parameters:
jsonMapper- The JSON mapperoutput- The output stream
-
-
Method Details
-
report
Description copied from interface:ConfigurationErrorReporterReport configuration validation errors.- Specified by:
reportin interfaceConfigurationErrorReporter- Parameters:
errors- The errors to report- Throws:
IOException- If the reporter fails to write the report
-