Add component definition: schematron

This commit is contained in:
gitea_admin 2026-03-11 14:32:58 +00:00
parent ccd54d08a2
commit c67160d361

102
component.json Normal file
View File

@ -0,0 +1,102 @@
{
"component": {
"kind": "component",
"name": "schematron",
"title": "Schematron",
"description": "Validate XML payload using the Schematron Library.",
"deprecated": false,
"firstVersion": "2.15.0",
"label": "validation",
"javaType": "org.apache.camel.component.schematron.SchematronComponent",
"supportLevel": "Stable",
"groupId": "org.apache.camel",
"artifactId": "camel-schematron",
"version": "4.10.2",
"scheme": "schematron",
"extendsScheme": "",
"syntax": "schematron:path",
"async": false,
"api": false,
"consumerOnly": false,
"producerOnly": true,
"lenientProperties": false,
"browsable": false,
"remote": false
},
"properties": {
"path": {
"index": 0,
"kind": "path",
"displayName": "Path",
"group": "producer",
"label": "",
"required": true,
"type": "string",
"javaType": "java.lang.String",
"deprecated": false,
"deprecationNote": "",
"autowired": false,
"secret": false,
"supportFileReference": true,
"description": "The path to the schematron rules file. Can either be in class path or location in the file system."
},
"abort": {
"index": 1,
"kind": "parameter",
"displayName": "Abort",
"group": "producer",
"label": "",
"required": false,
"type": "boolean",
"javaType": "boolean",
"deprecated": false,
"autowired": false,
"secret": false,
"defaultValue": false,
"description": "Flag to abort the route and throw a schematron validation exception."
},
"rules": {
"index": 2,
"kind": "parameter",
"displayName": "Rules",
"group": "producer",
"label": "",
"required": false,
"type": "object",
"javaType": "javax.xml.transform.Templates",
"deprecated": false,
"autowired": false,
"secret": false,
"description": "To use the given schematron rules instead of loading from the path"
},
"lazyStartProducer": {
"index": 3,
"kind": "parameter",
"displayName": "Lazy Start Producer",
"group": "producer (advanced)",
"label": "producer,advanced",
"required": false,
"type": "boolean",
"javaType": "boolean",
"deprecated": false,
"autowired": false,
"secret": false,
"defaultValue": false,
"description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing."
},
"uriResolver": {
"index": 4,
"kind": "parameter",
"displayName": "Uri Resolver",
"group": "advanced",
"label": "advanced",
"required": false,
"type": "object",
"javaType": "javax.xml.transform.URIResolver",
"deprecated": false,
"autowired": false,
"secret": false,
"description": "Set the URIResolver to be used for resolving schematron includes in the rules file."
}
}
}