From 88e38da3954a49ccf9c22ca2a6900885667aa764 Mon Sep 17 00:00:00 2001 From: gitea_admin Date: Mon, 12 Oct 2026 02:43:11 +0000 Subject: [PATCH] Add component definition: schematron --- component.json | 182 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 component.json diff --git a/component.json b/component.json new file mode 100644 index 0000000..2ab60f7 --- /dev/null +++ b/component.json @@ -0,0 +1,182 @@ +{ + "component": { + "kind": "component", + "name": "schematron", + "title": "Schematron", + "description": "Validate XML payload using the Schematron Library.", + "deprecated": false, + "firstVersion": "1.1.0", + "label": "validation", + "javaType": "org.apache.camel.component.schematron.SchematronComponent", + "supportLevel": "Preview", + "metadata": { + "quarkusVersion": "3.36.0", + "camelArtifact": "org.apache.camel:camel-schematron", + "camelVersion": "4.20.0" + }, + "groupId": "org.apache.camel.quarkus", + "artifactId": "camel-quarkus-schematron", + "version": "4.20.0 (CEQ 3.36.0)", + "scheme": "schematron", + "extendsScheme": "", + "syntax": "schematron:path", + "async": false, + "api": false, + "consumerOnly": false, + "producerOnly": true, + "lenientProperties": false, + "browsable": false, + "remote": false + }, + "componentProperties": { + "lazyStartProducer": { + "index": 0, + "kind": "property", + "displayName": "Lazy Start Producer", + "group": "producer", + "label": "producer", + "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." + }, + "autowiredEnabled": { + "index": 1, + "kind": "property", + "displayName": "Autowired Enabled", + "group": "advanced", + "label": "advanced", + "required": false, + "type": "boolean", + "javaType": "boolean", + "deprecated": false, + "autowired": false, + "secret": false, + "defaultValue": true, + "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc." + } + }, + "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." + } + }, + "propertiesSchema": { + "properties": { + "path": { + "title": "Path", + "description": "The path to the schematron rules file. Can either be in class path or location in the file system.", + "type": "string", + "$comment": "group:producer" + }, + "abort": { + "title": "Abort", + "description": "Flag to abort the route and throw a schematron validation exception.", + "type": "boolean", + "$comment": "group:producer", + "default": false + }, + "rules": { + "title": "Rules", + "description": "To use the given schematron rules instead of loading from the path", + "type": "string", + "$comment": "group:producer", + "format": "bean:javax.xml.transform.Templates" + }, + "lazyStartProducer": { + "title": "Lazy Start Producer", + "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.", + "type": "boolean", + "$comment": "group:producer (advanced)", + "default": false + }, + "uriResolver": { + "title": "Uri Resolver", + "description": "Set the URIResolver to be used for resolving schematron includes in the rules file.", + "type": "string", + "$comment": "group:advanced", + "format": "bean:javax.xml.transform.URIResolver" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "path" + ] + } +} \ No newline at end of file