[
https://issues.apache.org/jira/browse/CAMEL-12223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16349979#comment-16349979
]
ASF GitHub Bot commented on CAMEL-12223:
----------------------------------------
oscerd closed pull request #2204: CAMEL-12223: camel-json-validator: Removed
metioning of Everit from d…
URL: https://github.com/apache/camel/pull/2204
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/components/camel-json-validator/src/main/docs/json-validator-component.adoc
b/components/camel-json-validator/src/main/docs/json-validator-component.adoc
index a6b29ae13ec..12dc05ac806 100644
---
a/components/camel-json-validator/src/main/docs/json-validator-component.adoc
+++
b/components/camel-json-validator/src/main/docs/json-validator-component.adoc
@@ -67,7 +67,7 @@ with the following path and query parameters:
| *failOnNullHeader* (producer) | Whether to fail if no header exists when
validating against a header. | true | boolean
| *headerName* (producer) | To validate against a header instead of the
message body. | | String
| *errorHandler* (advanced) | To use a custom ValidatorErrorHandler. The
default error handler captures the errors and throws an exception. | |
JsonValidatorError Handler
-| *schemaLoader* (advanced) | To use a custom schema loader allowing for
adding custom format validation. See Everit JSON Schema documentation. The
default implementation will create a schema loader builder with draft v6
support. | | JsonSchemaLoader
+| *schemaLoader* (advanced) | To use a custom schema loader allowing for
adding custom format validation. The default implementation will create a
schema loader with draft v4 support. | | JsonSchemaLoader
| *synchronous* (advanced) | Sets whether synchronous processing should be
strictly used or Camel is allowed to use asynchronous processing (if
supported). | false | boolean
|===
// endpoint options: END
@@ -124,4 +124,4 @@ we can validate incoming JSON with the following Camel
route, where `myschema.js
from("direct:start")
.to("json-validator:myschema.json")
.to("mock:end")
-----
\ No newline at end of file
+----
diff --git
a/components/camel-json-validator/src/main/java/org/apache/camel/component/jsonvalidator/JsonValidatorEndpoint.java
b/components/camel-json-validator/src/main/java/org/apache/camel/component/jsonvalidator/JsonValidatorEndpoint.java
index a4706c08c93..fb07874755a 100644
---
a/components/camel-json-validator/src/main/java/org/apache/camel/component/jsonvalidator/JsonValidatorEndpoint.java
+++
b/components/camel-json-validator/src/main/java/org/apache/camel/component/jsonvalidator/JsonValidatorEndpoint.java
@@ -36,7 +36,7 @@
import org.slf4j.LoggerFactory;
/**
- * Validates the payload of a message using Everit JSON schema validator.
+ * Validates the payload of a message using NetworkNT JSON Schema library.
*/
@ManagedResource(description = "Managed JsonValidatorEndpoint")
@UriEndpoint(scheme = "json-validator", firstVersion = "2.20.0", title = "JSON
Schema Validator", syntax = "json-validator:resourceUri",
@@ -167,8 +167,7 @@ public JsonSchemaLoader getSchemaLoader() {
}
/**
- * To use a custom schema loader allowing for adding custom format
validation. See Everit JSON Schema documentation.
- * The default implementation will create a schema loader builder with
draft v6 support.
+ * To use a custom schema loader allowing for adding custom format
validation. The default implementation will create a schema loader with draft
v4 support.
*/
public void setSchemaLoader(JsonSchemaLoader schemaLoader) {
this.schemaLoader = schemaLoader;
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> camel-json-validator: Documentation and comments in code incorrectly
> mentions everit
> -------------------------------------------------------------------------------------
>
> Key: CAMEL-12223
> URL: https://issues.apache.org/jira/browse/CAMEL-12223
> Project: Camel
> Issue Type: Task
> Reporter: Pontus Ullgren
> Priority: Trivial
> Fix For: 2.21.0
>
>
> The switch to NetworkNT Schema validator (CAMEL-12032) missed to update some
> documentations and code coments.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)