[
https://issues.apache.org/jira/browse/CAMEL-6047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Laurynas Lubys updated CAMEL-6047:
----------------------------------
Attachment: validation.patch
Hello,
I'm attaching the patch to allow the validation of xml in headers.
You will notice that I added two parameters to the validator component:
"headerName" -- the name of the header to validate and "failOnNullHeader" -- i
added this option separately to avoid confusion that would arise when
validating a header and specifying "failOnNullBody". The correct way forward
would be to merge these two together, but that is probably not possible because
of backwards compatibility.
> Validator component - Add option to validate against message header instead
> of body
> -----------------------------------------------------------------------------------
>
> Key: CAMEL-6047
> URL: https://issues.apache.org/jira/browse/CAMEL-6047
> Project: Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Claus Ibsen
> Fix For: Future
>
> Attachments: validation.patch
>
>
> This component
> http://camel.apache.org/validation.html
> Will validate the message body by default.
> It would be nice if you can refer to a message header to validate instead.
> {code}
> .to("validator:myschema.xsd?headerName=myData")
> {code}
> For example a new option named {{headerName}} to refer to a header.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira