This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 1a0c2b3078e7e16b2cb46e9901ea5b2aacaf3161 Author: Claus Ibsen <[email protected]> AuthorDate: Fri Apr 8 11:01:51 2022 +0200 CAMEL-17930: camel-yaml-dsl - Yaml schema - generate enums for logging levels --- .../dsl/yaml/deserializers/ModelDeserializers.java | 116 +++++++------- .../src/generated/resources/camel-yaml-dsl.json | 174 ++++++++++++++------- .../src/generated/resources/camelYamlDsl.json | 174 ++++++++++++++------- 3 files changed, 290 insertions(+), 174 deletions(-) diff --git a/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java b/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java index 022aa66c544..7d0c5710aaa 100644 --- a/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java +++ b/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java @@ -514,7 +514,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "configuration", type = "array:org.apache.camel.model.PropertyDefinition"), @YamlProperty(name = "extractors", type = "array:string"), @YamlProperty(name = "id", type = "string"), - @YamlProperty(name = "output-format", type = "string") + @YamlProperty(name = "output-format", type = "enum:NTRIPLES,TURTLE,NQUADS,RDFXML,JSONLD,RDFJSON,RDF4JMODEL") } ) public static class Any23DataFormatDeserializer extends YamlDeserializerBase<Any23DataFormat> { @@ -1024,7 +1024,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "inherit-error-handler", type = "boolean"), @YamlProperty(name = "method", type = "string"), @YamlProperty(name = "ref", type = "string"), - @YamlProperty(name = "scope", type = "string") + @YamlProperty(name = "scope", type = "enum:Singleton,Request,Prototype") } ) public static class BeanDefinitionDeserializer extends YamlDeserializerBase<BeanDefinition> { @@ -1231,7 +1231,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "class-type", type = "string"), @YamlProperty(name = "id", type = "string"), @YamlProperty(name = "locale", type = "string"), - @YamlProperty(name = "type", type = "string", required = true), + @YamlProperty(name = "type", type = "enum:Csv,Fixed,KeyValue", required = true), @YamlProperty(name = "unwrap-single-instance", type = "boolean") } ) @@ -1516,7 +1516,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "properties", type = "array:org.apache.camel.model.PropertyDefinition"), @YamlProperty(name = "static-service-discovery", type = "object:org.apache.camel.model.cloud.StaticServiceCallServiceDiscoveryConfiguration"), @YamlProperty(name = "timeout", type = "number"), - @YamlProperty(name = "units", type = "string") + @YamlProperty(name = "units", type = "enum:NANOSECONDS,MICROSECONDS,MILLISECONDS,SECONDS,MINUTES,HOURS,DAYS") } ) public static class CachingServiceCallServiceDiscoveryConfigurationDeserializer extends YamlDeserializerBase<CachingServiceCallServiceDiscoveryConfiguration> { @@ -1822,7 +1822,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "id", type = "string"), @YamlProperty(name = "inherit-error-handler", type = "boolean"), @YamlProperty(name = "key", type = "string"), - @YamlProperty(name = "operation", type = "string", required = true) + @YamlProperty(name = "operation", type = "enum:Get,GetAndRemove,Set,Push,Pop", required = true) } ) public static class ClaimCheckDefinitionDeserializer extends YamlDeserializerBase<ClaimCheckDefinition> { @@ -2476,7 +2476,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "delimiter", type = "string"), @YamlProperty(name = "escape", type = "string"), @YamlProperty(name = "escape-disabled", type = "boolean"), - @YamlProperty(name = "format-name", type = "string"), + @YamlProperty(name = "format-name", type = "enum:DEFAULT,EXCEL,INFORMIX_UNLOAD,INFORMIX_UNLOAD_CSV,MYSQL,RFC4180"), @YamlProperty(name = "format-ref", type = "string"), @YamlProperty(name = "header", type = "array:string"), @YamlProperty(name = "header-disabled", type = "boolean"), @@ -2490,7 +2490,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "null-string-disabled", type = "boolean"), @YamlProperty(name = "quote", type = "string"), @YamlProperty(name = "quote-disabled", type = "boolean"), - @YamlProperty(name = "quote-mode", type = "string"), + @YamlProperty(name = "quote-mode", type = "enum:ALL,ALL_NON_NULL,MINIMAL,NON_NUMERIC,NONE"), @YamlProperty(name = "record-converter-ref", type = "string"), @YamlProperty(name = "record-separator", type = "string"), @YamlProperty(name = "record-separator-disabled", type = "string"), @@ -3821,7 +3821,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "dead-letter-uri", type = "string", required = true), @YamlProperty(name = "executor-service-ref", type = "string"), @YamlProperty(name = "id", type = "string"), - @YamlProperty(name = "level", type = "string"), + @YamlProperty(name = "level", type = "enum:TRACE,DEBUG,INFO,WARN,ERROR,OFF"), @YamlProperty(name = "log-name", type = "string"), @YamlProperty(name = "logger-ref", type = "string"), @YamlProperty(name = "on-exception-occurred-ref", type = "string"), @@ -3941,7 +3941,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { properties = { @YamlProperty(name = "executor-service-ref", type = "string"), @YamlProperty(name = "id", type = "string"), - @YamlProperty(name = "level", type = "string"), + @YamlProperty(name = "level", type = "enum:TRACE,DEBUG,INFO,WARN,ERROR,OFF"), @YamlProperty(name = "log-name", type = "string"), @YamlProperty(name = "logger-ref", type = "string"), @YamlProperty(name = "on-exception-occurred-ref", type = "string"), @@ -4172,7 +4172,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { nodes = "delete", properties = { @YamlProperty(name = "api-docs", type = "boolean"), - @YamlProperty(name = "binding-mode", type = "string"), + @YamlProperty(name = "binding-mode", type = "enum:off,auto,json,xml,json_xml"), @YamlProperty(name = "client-request-validation", type = "boolean"), @YamlProperty(name = "consumes", type = "string"), @YamlProperty(name = "deprecated", type = "boolean"), @@ -5069,7 +5069,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "dont-strip-versions-from-references-at-paths", type = "array:string"), @YamlProperty(name = "encode-elements", type = "array:string"), @YamlProperty(name = "encode-elements-applies-to-child-resources-only", type = "boolean"), - @YamlProperty(name = "fhir-version", type = "string"), + @YamlProperty(name = "fhir-version", type = "enum:DSTU2,DSTU2_HL7ORG,DSTU2_1,DSTU3,R4,R5"), @YamlProperty(name = "id", type = "string"), @YamlProperty(name = "omit-resource-id", type = "boolean"), @YamlProperty(name = "override-resource-id-with-bundle-entry-full-url", type = "boolean"), @@ -5185,7 +5185,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "dont-strip-versions-from-references-at-paths", type = "array:string"), @YamlProperty(name = "encode-elements", type = "array:string"), @YamlProperty(name = "encode-elements-applies-to-child-resources-only", type = "boolean"), - @YamlProperty(name = "fhir-version", type = "string"), + @YamlProperty(name = "fhir-version", type = "enum:DSTU2,DSTU2_HL7ORG,DSTU2_1,DSTU3,R4,R5"), @YamlProperty(name = "id", type = "string"), @YamlProperty(name = "omit-resource-id", type = "boolean"), @YamlProperty(name = "override-resource-id-with-bundle-entry-full-url", type = "boolean"), @@ -5506,7 +5506,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { nodes = "get", properties = { @YamlProperty(name = "api-docs", type = "boolean"), - @YamlProperty(name = "binding-mode", type = "string"), + @YamlProperty(name = "binding-mode", type = "enum:off,auto,json,xml,json_xml"), @YamlProperty(name = "client-request-validation", type = "boolean"), @YamlProperty(name = "consumes", type = "string"), @YamlProperty(name = "deprecated", type = "boolean"), @@ -5915,7 +5915,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { nodes = "head", properties = { @YamlProperty(name = "api-docs", type = "boolean"), - @YamlProperty(name = "binding-mode", type = "string"), + @YamlProperty(name = "binding-mode", type = "enum:off,auto,json,xml,json_xml"), @YamlProperty(name = "client-request-validation", type = "boolean"), @YamlProperty(name = "consumes", type = "string"), @YamlProperty(name = "deprecated", type = "boolean"), @@ -6899,7 +6899,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "pretty-print", type = "boolean"), @YamlProperty(name = "schema", type = "string"), @YamlProperty(name = "schema-location", type = "string"), - @YamlProperty(name = "schema-severity-level", type = "number"), + @YamlProperty(name = "schema-severity-level", type = "enum:0,1,2"), @YamlProperty(name = "xml-stream-writer-wrapper", type = "string") } ) @@ -7337,7 +7337,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "expression", type = "string", required = true), @YamlProperty(name = "header-name", type = "string"), @YamlProperty(name = "id", type = "string"), - @YamlProperty(name = "option", type = "string"), + @YamlProperty(name = "option", type = "enum:DEFAULT_PATH_LEAF_TO_NULL,ALWAYS_RETURN_LIST,AS_PATH_LIST,SUPPRESS_EXCEPTIONS,REQUIRE_PROPERTIES"), @YamlProperty(name = "result-type", type = "string"), @YamlProperty(name = "suppress-exceptions", type = "boolean"), @YamlProperty(name = "trim", type = "boolean"), @@ -7440,7 +7440,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { properties = { @YamlProperty(name = "executor-service-ref", type = "string"), @YamlProperty(name = "id", type = "string"), - @YamlProperty(name = "level", type = "string"), + @YamlProperty(name = "level", type = "enum:TRACE,DEBUG,INFO,WARN,ERROR,OFF"), @YamlProperty(name = "log-name", type = "string"), @YamlProperty(name = "logger-ref", type = "string"), @YamlProperty(name = "on-exception-occurred-ref", type = "string"), @@ -7449,7 +7449,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "redelivery-policy", type = "object:org.apache.camel.model.RedeliveryPolicyDefinition"), @YamlProperty(name = "redelivery-policy-ref", type = "string"), @YamlProperty(name = "retry-while-ref", type = "string"), - @YamlProperty(name = "rollback-logging-level", type = "string"), + @YamlProperty(name = "rollback-logging-level", type = "enum:TRACE,DEBUG,INFO,WARN,ERROR,OFF"), @YamlProperty(name = "transacted-policy-ref", type = "string"), @YamlProperty(name = "use-original-body", type = "boolean"), @YamlProperty(name = "use-original-message", type = "boolean") @@ -7571,7 +7571,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "client-key-passphrase", type = "string"), @YamlProperty(name = "dns-domain", type = "string"), @YamlProperty(name = "id", type = "string"), - @YamlProperty(name = "lookup", type = "string"), + @YamlProperty(name = "lookup", type = "enum:environment,dns,client"), @YamlProperty(name = "master-url", type = "string"), @YamlProperty(name = "namespace", type = "string"), @YamlProperty(name = "oauth-token", type = "string"), @@ -7926,7 +7926,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "inherit-error-handler", type = "boolean"), @YamlProperty(name = "log-name", type = "string"), @YamlProperty(name = "logger", type = "string"), - @YamlProperty(name = "logging-level", type = "string"), + @YamlProperty(name = "logging-level", type = "enum:TRACE,DEBUG,INFO,WARN,ERROR,OFF"), @YamlProperty(name = "marker", type = "string"), @YamlProperty(name = "message", type = "string", required = true) } @@ -8387,7 +8387,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "id", type = "string"), @YamlProperty(name = "method", type = "string"), @YamlProperty(name = "ref", type = "string"), - @YamlProperty(name = "scope", type = "string"), + @YamlProperty(name = "scope", type = "enum:Singleton,Request,Prototype"), @YamlProperty(name = "trim", type = "boolean") } ) @@ -8797,7 +8797,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { properties = { @YamlProperty(name = "authorization-url", type = "string"), @YamlProperty(name = "description", type = "string"), - @YamlProperty(name = "flow", type = "string"), + @YamlProperty(name = "flow", type = "enum:implicit,password,application,clientCredentials,accessCode,authorizationCode"), @YamlProperty(name = "key", type = "string", required = true), @YamlProperty(name = "refresh-url", type = "string"), @YamlProperty(name = "scopes", type = "array:org.apache.camel.model.rest.RestPropertyDefinition"), @@ -8935,7 +8935,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "executor-service", type = "string"), @YamlProperty(name = "id", type = "string"), @YamlProperty(name = "inherit-error-handler", type = "boolean"), - @YamlProperty(name = "mode", type = "string"), + @YamlProperty(name = "mode", type = "enum:AfterConsumer,BeforeConsumer"), @YamlProperty(name = "on-complete-only", type = "boolean"), @YamlProperty(name = "on-failure-only", type = "boolean"), @YamlProperty(name = "on-when", type = "object:org.apache.camel.model.WhenDefinition"), @@ -9786,7 +9786,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { nodes = "patch", properties = { @YamlProperty(name = "api-docs", type = "boolean"), - @YamlProperty(name = "binding-mode", type = "string"), + @YamlProperty(name = "binding-mode", type = "enum:off,auto,json,xml,json_xml"), @YamlProperty(name = "client-request-validation", type = "boolean"), @YamlProperty(name = "consumes", type = "string"), @YamlProperty(name = "deprecated", type = "boolean"), @@ -10135,7 +10135,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { nodes = "post", properties = { @YamlProperty(name = "api-docs", type = "boolean"), - @YamlProperty(name = "binding-mode", type = "string"), + @YamlProperty(name = "binding-mode", type = "enum:off,auto,json,xml,json_xml"), @YamlProperty(name = "client-request-validation", type = "boolean"), @YamlProperty(name = "consumes", type = "string"), @YamlProperty(name = "deprecated", type = "boolean"), @@ -10449,7 +10449,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "auto-discover-object-mapper", type = "boolean"), @YamlProperty(name = "auto-discover-schema-resolver", type = "boolean"), @YamlProperty(name = "collection-type", type = "string"), - @YamlProperty(name = "content-type-format", type = "string"), + @YamlProperty(name = "content-type-format", type = "enum:native,json"), @YamlProperty(name = "content-type-header", type = "boolean"), @YamlProperty(name = "disable-features", type = "string"), @YamlProperty(name = "enable-features", type = "string"), @@ -10610,7 +10610,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { nodes = "put", properties = { @YamlProperty(name = "api-docs", type = "boolean"), - @YamlProperty(name = "binding-mode", type = "string"), + @YamlProperty(name = "binding-mode", type = "enum:off,auto,json,xml,json_xml"), @YamlProperty(name = "client-request-validation", type = "boolean"), @YamlProperty(name = "consumes", type = "string"), @YamlProperty(name = "deprecated", type = "boolean"), @@ -11523,7 +11523,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "minimum-number-of-calls", type = "number"), @YamlProperty(name = "permitted-number-of-calls-in-half-open-state", type = "number"), @YamlProperty(name = "sliding-window-size", type = "number"), - @YamlProperty(name = "sliding-window-type", type = "string"), + @YamlProperty(name = "sliding-window-type", type = "enum:TIME_BASED,COUNT_BASED"), @YamlProperty(name = "slow-call-duration-threshold", type = "number"), @YamlProperty(name = "slow-call-rate-threshold", type = "number"), @YamlProperty(name = "wait-duration-in-open-state", type = "number"), @@ -11766,7 +11766,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { "restBinding" }, properties = { - @YamlProperty(name = "binding-mode", type = "string"), + @YamlProperty(name = "binding-mode", type = "enum:off,auto,json,xml,json_xml"), @YamlProperty(name = "client-request-validation", type = "boolean"), @YamlProperty(name = "component", type = "string"), @YamlProperty(name = "consumes", type = "string"), @@ -11864,14 +11864,14 @@ public final class ModelDeserializers extends YamlDeserializerSupport { "restConfiguration" }, properties = { - @YamlProperty(name = "api-component", type = "string"), + @YamlProperty(name = "api-component", type = "enum:openapi,swagger"), @YamlProperty(name = "api-context-path", type = "string"), @YamlProperty(name = "api-host", type = "string"), @YamlProperty(name = "api-property", type = "array:org.apache.camel.model.rest.RestPropertyDefinition"), @YamlProperty(name = "api-vendor-extension", type = "boolean"), @YamlProperty(name = "binding-mode", type = "enum:auto,json,json_xml,off,xml"), @YamlProperty(name = "client-request-validation", type = "boolean"), - @YamlProperty(name = "component", type = "string"), + @YamlProperty(name = "component", type = "enum:platform-http,servlet,jetty,undertow,netty-http,coap"), @YamlProperty(name = "component-property", type = "array:org.apache.camel.model.rest.RestPropertyDefinition"), @YamlProperty(name = "consumer-property", type = "array:org.apache.camel.model.rest.RestPropertyDefinition"), @YamlProperty(name = "context-path", type = "string"), @@ -11884,7 +11884,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "json-data-format", type = "string"), @YamlProperty(name = "port", type = "string"), @YamlProperty(name = "producer-api-doc", type = "string"), - @YamlProperty(name = "producer-component", type = "string"), + @YamlProperty(name = "producer-component", type = "enum:vertx-http,http,undertow,netty-http"), @YamlProperty(name = "scheme", type = "string"), @YamlProperty(name = "skip-binding-on-error-code", type = "boolean"), @YamlProperty(name = "use-x-forward-headers", type = "boolean"), @@ -12085,7 +12085,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { nodes = "rest", properties = { @YamlProperty(name = "api-docs", type = "boolean"), - @YamlProperty(name = "binding-mode", type = "string"), + @YamlProperty(name = "binding-mode", type = "enum:off,auto,json,xml,json_xml"), @YamlProperty(name = "client-request-validation", type = "boolean"), @YamlProperty(name = "consumes", type = "string"), @YamlProperty(name = "delete", type = "array:org.apache.camel.model.rest.DeleteDefinition"), @@ -13049,12 +13049,12 @@ public final class ModelDeserializers extends YamlDeserializerSupport { properties = { @YamlProperty(name = "compensation", type = "object:org.apache.camel.model.SagaActionUriDefinition"), @YamlProperty(name = "completion", type = "object:org.apache.camel.model.SagaActionUriDefinition"), - @YamlProperty(name = "completion-mode", type = "string"), + @YamlProperty(name = "completion-mode", type = "enum:AUTO,MANUAL"), @YamlProperty(name = "description", type = "string"), @YamlProperty(name = "id", type = "string"), @YamlProperty(name = "inherit-error-handler", type = "boolean"), @YamlProperty(name = "option", type = "array:org.apache.camel.model.PropertyExpressionDefinition"), - @YamlProperty(name = "propagation", type = "string"), + @YamlProperty(name = "propagation", type = "enum:REQUIRED,REQUIRES_NEW,MANDATORY,SUPPORTS,NOT_SUPPORTED,NEVER"), @YamlProperty(name = "saga-service", type = "string"), @YamlProperty(name = "steps", type = "array:org.apache.camel.model.ProcessorDefinition"), @YamlProperty(name = "timeout", type = "string") @@ -13329,7 +13329,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "kubernetes-service-discovery", type = "object:org.apache.camel.model.cloud.KubernetesServiceCallServiceDiscoveryConfiguration"), @YamlProperty(name = "load-balancer-ref", type = "string"), @YamlProperty(name = "pass-through-service-filter", type = "object:org.apache.camel.model.cloud.PassThroughServiceCallServiceFilterConfiguration"), - @YamlProperty(name = "pattern", type = "string"), + @YamlProperty(name = "pattern", type = "enum:InOnly,InOut,InOptionalOut"), @YamlProperty(name = "service-chooser-ref", type = "string"), @YamlProperty(name = "service-discovery-ref", type = "string"), @YamlProperty(name = "service-filter-ref", type = "string"), @@ -13514,7 +13514,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "load-balancer-ref", type = "string"), @YamlProperty(name = "name", type = "string", required = true), @YamlProperty(name = "pass-through-service-filter", type = "object:org.apache.camel.model.cloud.PassThroughServiceCallServiceFilterConfiguration"), - @YamlProperty(name = "pattern", type = "string"), + @YamlProperty(name = "pattern", type = "enum:InOnly,InOut,InOptionalOut"), @YamlProperty(name = "service-chooser-ref", type = "string"), @YamlProperty(name = "service-discovery-ref", type = "string"), @YamlProperty(name = "service-filter-ref", type = "string"), @@ -14011,7 +14011,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "description", type = "string"), @YamlProperty(name = "id", type = "string"), @YamlProperty(name = "inherit-error-handler", type = "boolean"), - @YamlProperty(name = "pattern", type = "string", required = true) + @YamlProperty(name = "pattern", type = "enum:InOnly,InOut,InOptionalOut", required = true) } ) public static class SetExchangePatternDefinitionDeserializer extends YamlDeserializerBase<SetExchangePatternDefinition> { @@ -14285,7 +14285,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "id", type = "string"), @YamlProperty(name = "namespace-prefix-ref", type = "string"), @YamlProperty(name = "schema", type = "string"), - @YamlProperty(name = "version", type = "string") + @YamlProperty(name = "version", type = "enum:1.1,1.2") } ) public static class SoapDataFormatDeserializer extends YamlDeserializerBase<SoapDataFormat> { @@ -14631,7 +14631,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { properties = { @YamlProperty(name = "executor-service-ref", type = "string"), @YamlProperty(name = "id", type = "string"), - @YamlProperty(name = "level", type = "string"), + @YamlProperty(name = "level", type = "enum:TRACE,DEBUG,INFO,WARN,ERROR,OFF"), @YamlProperty(name = "log-name", type = "string"), @YamlProperty(name = "logger-ref", type = "string"), @YamlProperty(name = "on-exception-occurred-ref", type = "string"), @@ -14640,7 +14640,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "redelivery-policy", type = "object:org.apache.camel.model.RedeliveryPolicyDefinition"), @YamlProperty(name = "redelivery-policy-ref", type = "string"), @YamlProperty(name = "retry-while-ref", type = "string"), - @YamlProperty(name = "rollback-logging-level", type = "string"), + @YamlProperty(name = "rollback-logging-level", type = "enum:TRACE,DEBUG,INFO,WARN,ERROR,OFF"), @YamlProperty(name = "transacted-policy-ref", type = "string"), @YamlProperty(name = "use-original-body", type = "boolean"), @YamlProperty(name = "use-original-message", type = "boolean") @@ -15153,8 +15153,8 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "max-pool-size", type = "number"), @YamlProperty(name = "max-queue-size", type = "number"), @YamlProperty(name = "pool-size", type = "number"), - @YamlProperty(name = "rejected-policy", type = "string"), - @YamlProperty(name = "time-unit", type = "string") + @YamlProperty(name = "rejected-policy", type = "enum:Abort,CallerRuns,DiscardOldest,Discard"), + @YamlProperty(name = "time-unit", type = "enum:NANOSECONDS,MICROSECONDS,MILLISECONDS,SECONDS,MINUTES,HOURS,DAYS") } ) public static class ThreadPoolProfileDefinitionDeserializer extends YamlDeserializerBase<ThreadPoolProfileDefinition> { @@ -15244,9 +15244,9 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "max-pool-size", type = "number"), @YamlProperty(name = "max-queue-size", type = "number"), @YamlProperty(name = "pool-size", type = "number"), - @YamlProperty(name = "rejected-policy", type = "string"), + @YamlProperty(name = "rejected-policy", type = "enum:Abort,CallerRuns,DiscardOldest,Discard"), @YamlProperty(name = "thread-name", type = "string"), - @YamlProperty(name = "time-unit", type = "string") + @YamlProperty(name = "time-unit", type = "enum:NANOSECONDS,MICROSECONDS,MILLISECONDS,SECONDS,MINUTES,HOURS,DAYS") } ) public static class ThreadsDefinitionDeserializer extends YamlDeserializerBase<ThreadsDefinition> { @@ -15342,7 +15342,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { order = org.apache.camel.dsl.yaml.common.YamlDeserializerResolver.ORDER_LOWEST - 1, nodes = "thrift", properties = { - @YamlProperty(name = "content-type-format", type = "string"), + @YamlProperty(name = "content-type-format", type = "enum:binary,json,sjson"), @YamlProperty(name = "content-type-header", type = "boolean"), @YamlProperty(name = "id", type = "string"), @YamlProperty(name = "instance-class", type = "string") @@ -15570,7 +15570,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { "tidyMarkup" }, properties = { - @YamlProperty(name = "data-object-type", type = "string"), + @YamlProperty(name = "data-object-type", type = "enum:org.w3c.dom.Node,java.lang.String"), @YamlProperty(name = "id", type = "string"), @YamlProperty(name = "omit-xml-declaration", type = "boolean") } @@ -15622,7 +15622,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "id", type = "string"), @YamlProperty(name = "inherit-error-handler", type = "boolean"), @YamlProperty(name = "parameters", type = "object"), - @YamlProperty(name = "pattern", type = "string"), + @YamlProperty(name = "pattern", type = "enum:InOnly,InOut,InOptionalOut"), @YamlProperty(name = "uri", type = "string", required = true) } ) @@ -15701,7 +15701,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "ignore-invalid-endpoint", type = "boolean"), @YamlProperty(name = "inherit-error-handler", type = "boolean"), @YamlProperty(name = "parameters", type = "object"), - @YamlProperty(name = "pattern", type = "string"), + @YamlProperty(name = "pattern", type = "enum:InOnly,InOut,InOptionalOut"), @YamlProperty(name = "uri", type = "string", required = true) } ) @@ -17297,7 +17297,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "inherit-error-handler", type = "boolean"), @YamlProperty(name = "on-prepare", type = "string"), @YamlProperty(name = "parameters", type = "object"), - @YamlProperty(name = "pattern", type = "string"), + @YamlProperty(name = "pattern", type = "enum:InOnly,InOut,InOptionalOut"), @YamlProperty(name = "uri", type = "string", required = true) } ) @@ -17403,18 +17403,18 @@ public final class ModelDeserializers extends YamlDeserializerSupport { }, properties = { @YamlProperty(name = "add-key-value-for-encrypted-key", type = "boolean"), - @YamlProperty(name = "digest-algorithm", type = "string"), + @YamlProperty(name = "digest-algorithm", type = "enum:SHA1,SHA256,SHA512"), @YamlProperty(name = "id", type = "string"), - @YamlProperty(name = "key-cipher-algorithm", type = "string"), + @YamlProperty(name = "key-cipher-algorithm", type = "enum:RSA_v1dot5,RSA_OAEP,RSA_OAEP_11"), @YamlProperty(name = "key-or-trust-store-parameters-ref", type = "string"), @YamlProperty(name = "key-password", type = "string"), - @YamlProperty(name = "mgf-algorithm", type = "string"), + @YamlProperty(name = "mgf-algorithm", type = "enum:MGF1_SHA1,MGF1_SHA256,MGF1_SHA512"), @YamlProperty(name = "pass-phrase", type = "string"), @YamlProperty(name = "pass-phrase-byte", type = "string", format = "binary"), @YamlProperty(name = "recipient-key-alias", type = "string"), @YamlProperty(name = "secure-tag", type = "string"), @YamlProperty(name = "secure-tag-contents", type = "boolean"), - @YamlProperty(name = "xml-cipher-algorithm", type = "string") + @YamlProperty(name = "xml-cipher-algorithm", type = "enum:TRIPLEDES,AES_128,AES_128_GCM,AES_192,AES_192_GCM,AES_256,AES_256_GCM,SEED_128,CAMELLIA_128,CAMELLIA_192,CAMELLIA_256") } ) public static class XMLSecurityDataFormatDeserializer extends YamlDeserializerBase<XMLSecurityDataFormat> { @@ -17514,7 +17514,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "group", type = "number"), @YamlProperty(name = "header-name", type = "string"), @YamlProperty(name = "id", type = "string"), - @YamlProperty(name = "mode", type = "string"), + @YamlProperty(name = "mode", type = "enum:i,w,u,t"), @YamlProperty(name = "trim", type = "boolean") } ) @@ -17598,7 +17598,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "log-namespaces", type = "boolean"), @YamlProperty(name = "object-model", type = "string"), @YamlProperty(name = "pre-compile", type = "boolean"), - @YamlProperty(name = "result-type", type = "string"), + @YamlProperty(name = "result-type", type = "enum:NUMBER,STRING,BOOLEAN,NODESET,NODE"), @YamlProperty(name = "saxon", type = "boolean"), @YamlProperty(name = "thread-safety", type = "boolean"), @YamlProperty(name = "trim", type = "boolean") @@ -17794,7 +17794,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { @YamlProperty(name = "encoding", type = "string"), @YamlProperty(name = "id", type = "string"), @YamlProperty(name = "implicit-collections", type = "array:org.apache.camel.model.PropertyDefinition"), - @YamlProperty(name = "mode", type = "string"), + @YamlProperty(name = "mode", type = "enum:NO_REFERENCES,ID_REFERENCES,XPATH_RELATIVE_REFERENCES,XPATH_ABSOLUTE_REFERENCES,SINGLE_NODE_XPATH_RELATIVE_REFERENCES,SINGLE_NODE_XPATH_ABSOLUTE_REFERENCES"), @YamlProperty(name = "omit-fields", type = "array:org.apache.camel.model.PropertyDefinition"), @YamlProperty(name = "permissions", type = "string") } @@ -18039,7 +18039,7 @@ public final class ModelDeserializers extends YamlDeserializerSupport { "zipDeflater" }, properties = { - @YamlProperty(name = "compression-level", type = "number"), + @YamlProperty(name = "compression-level", type = "enum:-1,0,1,2,3,4,5,6,7,8,9"), @YamlProperty(name = "id", type = "string") } ) diff --git a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/camel-yaml-dsl.json b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/camel-yaml-dsl.json index 21876e5722a..c0d710a2a46 100644 --- a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/camel-yaml-dsl.json +++ b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/camel-yaml-dsl.json @@ -502,7 +502,8 @@ "type" : "string" }, "scope" : { - "type" : "string" + "type" : "string", + "enum" : [ "Singleton", "Request", "Prototype" ] } } } ] @@ -625,7 +626,8 @@ "type" : "string" }, "operation" : { - "type" : "string" + "type" : "string", + "enum" : [ "Get", "GetAndRemove", "Set", "Push", "Pop" ] } }, "required" : [ "operation" ] @@ -1310,7 +1312,8 @@ "type" : "string" }, "logging-level" : { - "type" : "string" + "type" : "string", + "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ] }, "marker" : { "type" : "string" @@ -1560,7 +1563,8 @@ "type" : "boolean" }, "mode" : { - "type" : "string" + "type" : "string", + "enum" : [ "AfterConsumer", "BeforeConsumer" ] }, "on-complete-only" : { "type" : "boolean" @@ -2189,7 +2193,8 @@ "type" : "number" }, "sliding-window-type" : { - "type" : "string" + "type" : "string", + "enum" : [ "TIME_BASED", "COUNT_BASED" ] }, "slow-call-duration-threshold" : { "type" : "number" @@ -2517,7 +2522,8 @@ "$ref" : "#/items/definitions/org.apache.camel.model.SagaActionUriDefinition" }, "completion-mode" : { - "type" : "string" + "type" : "string", + "enum" : [ "AUTO", "MANUAL" ] }, "description" : { "type" : "string" @@ -2535,7 +2541,8 @@ } }, "propagation" : { - "type" : "string" + "type" : "string", + "enum" : [ "REQUIRED", "REQUIRES_NEW", "MANDATORY", "SUPPORTS", "NOT_SUPPORTED", "NEVER" ] }, "saga-service" : { "type" : "string" @@ -2631,7 +2638,8 @@ "type" : "boolean" }, "pattern" : { - "type" : "string" + "type" : "string", + "enum" : [ "InOnly", "InOut", "InOptionalOut" ] } } } ], @@ -2895,10 +2903,12 @@ "type" : "number" }, "rejected-policy" : { - "type" : "string" + "type" : "string", + "enum" : [ "Abort", "CallerRuns", "DiscardOldest", "Discard" ] }, "time-unit" : { - "type" : "string" + "type" : "string", + "enum" : [ "NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS", "DAYS" ] } } }, @@ -2936,13 +2946,15 @@ "type" : "number" }, "rejected-policy" : { - "type" : "string" + "type" : "string", + "enum" : [ "Abort", "CallerRuns", "DiscardOldest", "Discard" ] }, "thread-name" : { "type" : "string" }, "time-unit" : { - "type" : "string" + "type" : "string", + "enum" : [ "NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS", "DAYS" ] } } }, @@ -3026,7 +3038,8 @@ "type" : "object" }, "pattern" : { - "type" : "string" + "type" : "string", + "enum" : [ "InOnly", "InOut", "InOptionalOut" ] }, "uri" : { "type" : "string" @@ -3066,7 +3079,8 @@ "type" : "object" }, "pattern" : { - "type" : "string" + "type" : "string", + "enum" : [ "InOnly", "InOut", "InOptionalOut" ] }, "uri" : { "type" : "string" @@ -3399,7 +3413,8 @@ "type" : "object" }, "pattern" : { - "type" : "string" + "type" : "string", + "enum" : [ "InOnly", "InOut", "InOptionalOut" ] }, "uri" : { "type" : "string" @@ -3458,7 +3473,8 @@ "type" : "number" }, "units" : { - "type" : "string" + "type" : "string", + "enum" : [ "NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS", "DAYS" ] } } }, @@ -3660,7 +3676,8 @@ "type" : "string" }, "lookup" : { - "type" : "string" + "type" : "string", + "enum" : [ "environment", "dns", "client" ] }, "master-url" : { "type" : "string" @@ -3760,7 +3777,8 @@ "$ref" : "#/items/definitions/org.apache.camel.model.cloud.PassThroughServiceCallServiceFilterConfiguration" }, "pattern" : { - "type" : "string" + "type" : "string", + "enum" : [ "InOnly", "InOut", "InOptionalOut" ] }, "service-chooser-ref" : { "type" : "string" @@ -3849,7 +3867,8 @@ "$ref" : "#/items/definitions/org.apache.camel.model.cloud.PassThroughServiceCallServiceFilterConfiguration" }, "pattern" : { - "type" : "string" + "type" : "string", + "enum" : [ "InOnly", "InOut", "InOptionalOut" ] }, "service-chooser-ref" : { "type" : "string" @@ -4097,7 +4116,8 @@ "type" : "string" }, "output-format" : { - "type" : "string" + "type" : "string", + "enum" : [ "NTRIPLES", "TURTLE", "NQUADS", "RDFXML", "JSONLD", "RDFJSON", "RDF4JMODEL" ] } } } ] @@ -4261,7 +4281,8 @@ "type" : "string" }, "type" : { - "type" : "string" + "type" : "string", + "enum" : [ "Csv", "Fixed", "KeyValue" ] }, "unwrap-single-instance" : { "type" : "boolean" @@ -4370,7 +4391,8 @@ "type" : "boolean" }, "format-name" : { - "type" : "string" + "type" : "string", + "enum" : [ "DEFAULT", "EXCEL", "INFORMIX_UNLOAD", "INFORMIX_UNLOAD_CSV", "MYSQL", "RFC4180" ] }, "format-ref" : { "type" : "string" @@ -4415,7 +4437,8 @@ "type" : "boolean" }, "quote-mode" : { - "type" : "string" + "type" : "string", + "enum" : [ "ALL", "ALL_NON_NULL", "MINIMAL", "NON_NUMERIC", "NONE" ] }, "record-converter-ref" : { "type" : "string" @@ -4613,7 +4636,8 @@ "type" : "boolean" }, "fhir-version" : { - "type" : "string" + "type" : "string", + "enum" : [ "DSTU2", "DSTU2_HL7ORG", "DSTU2_1", "DSTU3", "R4", "R5" ] }, "id" : { "type" : "string" @@ -4669,7 +4693,8 @@ "type" : "boolean" }, "fhir-version" : { - "type" : "string" + "type" : "string", + "enum" : [ "DSTU2", "DSTU2_HL7ORG", "DSTU2_1", "DSTU3", "R4", "R5" ] }, "id" : { "type" : "string" @@ -4894,7 +4919,8 @@ "type" : "string" }, "schema-severity-level" : { - "type" : "number" + "type" : "string", + "enum" : [ "0", "1", "2" ] }, "xml-stream-writer-wrapper" : { "type" : "string" @@ -5097,7 +5123,8 @@ "type" : "string" }, "content-type-format" : { - "type" : "string" + "type" : "string", + "enum" : [ "native", "json" ] }, "content-type-header" : { "type" : "boolean" @@ -5184,7 +5211,8 @@ "type" : "string" }, "version" : { - "type" : "string" + "type" : "string", + "enum" : [ "1.1", "1.2" ] } } } ], @@ -5225,7 +5253,8 @@ "type" : "object", "properties" : { "content-type-format" : { - "type" : "string" + "type" : "string", + "enum" : [ "binary", "json", "sjson" ] }, "content-type-header" : { "type" : "boolean" @@ -5243,7 +5272,8 @@ "type" : "object", "properties" : { "data-object-type" : { - "type" : "string" + "type" : "string", + "enum" : [ "org.w3c.dom.Node", "java.lang.String" ] }, "id" : { "type" : "string" @@ -5454,13 +5484,15 @@ "type" : "boolean" }, "digest-algorithm" : { - "type" : "string" + "type" : "string", + "enum" : [ "SHA1", "SHA256", "SHA512" ] }, "id" : { "type" : "string" }, "key-cipher-algorithm" : { - "type" : "string" + "type" : "string", + "enum" : [ "RSA_v1dot5", "RSA_OAEP", "RSA_OAEP_11" ] }, "key-or-trust-store-parameters-ref" : { "type" : "string" @@ -5469,7 +5501,8 @@ "type" : "string" }, "mgf-algorithm" : { - "type" : "string" + "type" : "string", + "enum" : [ "MGF1_SHA1", "MGF1_SHA256", "MGF1_SHA512" ] }, "pass-phrase" : { "type" : "string" @@ -5487,7 +5520,8 @@ "type" : "boolean" }, "xml-cipher-algorithm" : { - "type" : "string" + "type" : "string", + "enum" : [ "TRIPLEDES", "AES_128", "AES_128_GCM", "AES_192", "AES_192_GCM", "AES_256", "AES_256_GCM", "SEED_128", "CAMELLIA_128", "CAMELLIA_192", "CAMELLIA_256" ] } } }, @@ -5531,7 +5565,8 @@ } }, "mode" : { - "type" : "string" + "type" : "string", + "enum" : [ "NO_REFERENCES", "ID_REFERENCES", "XPATH_RELATIVE_REFERENCES", "XPATH_ABSOLUTE_REFERENCES", "SINGLE_NODE_XPATH_RELATIVE_REFERENCES", "SINGLE_NODE_XPATH_ABSOLUTE_REFERENCES" ] }, "omit-fields" : { "type" : "array", @@ -5608,7 +5643,8 @@ "type" : "object", "properties" : { "compression-level" : { - "type" : "number" + "type" : "string", + "enum" : [ "-1", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" ] }, "id" : { "type" : "string" @@ -5651,7 +5687,8 @@ "type" : "string" }, "level" : { - "type" : "string" + "type" : "string", + "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ] }, "log-name" : { "type" : "string" @@ -5696,7 +5733,8 @@ "type" : "string" }, "level" : { - "type" : "string" + "type" : "string", + "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ] }, "log-name" : { "type" : "string" @@ -5752,7 +5790,8 @@ "type" : "string" }, "level" : { - "type" : "string" + "type" : "string", + "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ] }, "log-name" : { "type" : "string" @@ -5779,7 +5818,8 @@ "type" : "string" }, "rollback-logging-level" : { - "type" : "string" + "type" : "string", + "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ] }, "transacted-policy-ref" : { "type" : "string" @@ -5810,7 +5850,8 @@ "type" : "string" }, "level" : { - "type" : "string" + "type" : "string", + "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ] }, "log-name" : { "type" : "string" @@ -5837,7 +5878,8 @@ "type" : "string" }, "rollback-logging-level" : { - "type" : "string" + "type" : "string", + "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ] }, "transacted-policy-ref" : { "type" : "string" @@ -6116,7 +6158,8 @@ "type" : "string" }, "option" : { - "type" : "string" + "type" : "string", + "enum" : [ "DEFAULT_PATH_LEAF_TO_NULL", "ALWAYS_RETURN_LIST", "AS_PATH_LIST", "SUPPRESS_EXCEPTIONS", "REQUIRE_PROPERTIES" ] }, "result-type" : { "type" : "string" @@ -6174,7 +6217,8 @@ "type" : "string" }, "scope" : { - "type" : "string" + "type" : "string", + "enum" : [ "Singleton", "Request", "Prototype" ] }, "trim" : { "type" : "boolean" @@ -6349,7 +6393,8 @@ "type" : "string" }, "mode" : { - "type" : "string" + "type" : "string", + "enum" : [ "i", "w", "u", "t" ] }, "trim" : { "type" : "boolean" @@ -6389,7 +6434,8 @@ "type" : "boolean" }, "result-type" : { - "type" : "string" + "type" : "string", + "enum" : [ "NUMBER", "STRING", "BOOLEAN", "NODESET", "NODE" ] }, "saxon" : { "type" : "boolean" @@ -6582,7 +6628,8 @@ "type" : "boolean" }, "binding-mode" : { - "type" : "string" + "type" : "string", + "enum" : [ "off", "auto", "json", "xml", "json_xml" ] }, "client-request-validation" : { "type" : "boolean" @@ -6647,7 +6694,8 @@ "type" : "boolean" }, "binding-mode" : { - "type" : "string" + "type" : "string", + "enum" : [ "off", "auto", "json", "xml", "json_xml" ] }, "client-request-validation" : { "type" : "boolean" @@ -6712,7 +6760,8 @@ "type" : "boolean" }, "binding-mode" : { - "type" : "string" + "type" : "string", + "enum" : [ "off", "auto", "json", "xml", "json_xml" ] }, "client-request-validation" : { "type" : "boolean" @@ -6792,7 +6841,8 @@ "type" : "string" }, "flow" : { - "type" : "string" + "type" : "string", + "enum" : [ "implicit", "password", "application", "clientCredentials", "accessCode", "authorizationCode" ] }, "key" : { "type" : "string" @@ -6881,7 +6931,8 @@ "type" : "boolean" }, "binding-mode" : { - "type" : "string" + "type" : "string", + "enum" : [ "off", "auto", "json", "xml", "json_xml" ] }, "client-request-validation" : { "type" : "boolean" @@ -6946,7 +6997,8 @@ "type" : "boolean" }, "binding-mode" : { - "type" : "string" + "type" : "string", + "enum" : [ "off", "auto", "json", "xml", "json_xml" ] }, "client-request-validation" : { "type" : "boolean" @@ -7011,7 +7063,8 @@ "type" : "boolean" }, "binding-mode" : { - "type" : "string" + "type" : "string", + "enum" : [ "off", "auto", "json", "xml", "json_xml" ] }, "client-request-validation" : { "type" : "boolean" @@ -7134,7 +7187,8 @@ "type" : "object", "properties" : { "binding-mode" : { - "type" : "string" + "type" : "string", + "enum" : [ "off", "auto", "json", "xml", "json_xml" ] }, "client-request-validation" : { "type" : "boolean" @@ -7172,7 +7226,8 @@ "type" : "object", "properties" : { "api-component" : { - "type" : "string" + "type" : "string", + "enum" : [ "openapi", "swagger" ] }, "api-context-path" : { "type" : "string" @@ -7197,7 +7252,8 @@ "type" : "boolean" }, "component" : { - "type" : "string" + "type" : "string", + "enum" : [ "platform-http", "servlet", "jetty", "undertow", "netty-http", "coap" ] }, "component-property" : { "type" : "array", @@ -7252,7 +7308,8 @@ "type" : "string" }, "producer-component" : { - "type" : "string" + "type" : "string", + "enum" : [ "vertx-http", "http", "undertow", "netty-http" ] }, "scheme" : { "type" : "string" @@ -7275,7 +7332,8 @@ "type" : "boolean" }, "binding-mode" : { - "type" : "string" + "type" : "string", + "enum" : [ "off", "auto", "json", "xml", "json_xml" ] }, "client-request-validation" : { "type" : "boolean" diff --git a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/camelYamlDsl.json b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/camelYamlDsl.json index b6cef1cf712..c17e4624392 100644 --- a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/camelYamlDsl.json +++ b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/camelYamlDsl.json @@ -409,7 +409,8 @@ "type" : "string" }, "scope" : { - "type" : "string" + "type" : "string", + "enum" : [ "Singleton", "Request", "Prototype" ] } } } ] @@ -532,7 +533,8 @@ "type" : "string" }, "operation" : { - "type" : "string" + "type" : "string", + "enum" : [ "Get", "GetAndRemove", "Set", "Push", "Pop" ] } }, "required" : [ "operation" ] @@ -1214,7 +1216,8 @@ "type" : "string" }, "loggingLevel" : { - "type" : "string" + "type" : "string", + "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ] }, "marker" : { "type" : "string" @@ -1464,7 +1467,8 @@ "type" : "boolean" }, "mode" : { - "type" : "string" + "type" : "string", + "enum" : [ "AfterConsumer", "BeforeConsumer" ] }, "onCompleteOnly" : { "type" : "boolean" @@ -2093,7 +2097,8 @@ "type" : "number" }, "slidingWindowType" : { - "type" : "string" + "type" : "string", + "enum" : [ "TIME_BASED", "COUNT_BASED" ] }, "slowCallDurationThreshold" : { "type" : "number" @@ -2421,7 +2426,8 @@ "$ref" : "#/items/definitions/org.apache.camel.model.SagaActionUriDefinition" }, "completionMode" : { - "type" : "string" + "type" : "string", + "enum" : [ "AUTO", "MANUAL" ] }, "description" : { "type" : "string" @@ -2439,7 +2445,8 @@ } }, "propagation" : { - "type" : "string" + "type" : "string", + "enum" : [ "REQUIRED", "REQUIRES_NEW", "MANDATORY", "SUPPORTS", "NOT_SUPPORTED", "NEVER" ] }, "sagaService" : { "type" : "string" @@ -2535,7 +2542,8 @@ "type" : "boolean" }, "pattern" : { - "type" : "string" + "type" : "string", + "enum" : [ "InOnly", "InOut", "InOptionalOut" ] } } } ], @@ -2799,10 +2807,12 @@ "type" : "number" }, "rejectedPolicy" : { - "type" : "string" + "type" : "string", + "enum" : [ "Abort", "CallerRuns", "DiscardOldest", "Discard" ] }, "timeUnit" : { - "type" : "string" + "type" : "string", + "enum" : [ "NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS", "DAYS" ] } } }, @@ -2840,13 +2850,15 @@ "type" : "number" }, "rejectedPolicy" : { - "type" : "string" + "type" : "string", + "enum" : [ "Abort", "CallerRuns", "DiscardOldest", "Discard" ] }, "threadName" : { "type" : "string" }, "timeUnit" : { - "type" : "string" + "type" : "string", + "enum" : [ "NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS", "DAYS" ] } } }, @@ -2930,7 +2942,8 @@ "type" : "object" }, "pattern" : { - "type" : "string" + "type" : "string", + "enum" : [ "InOnly", "InOut", "InOptionalOut" ] }, "uri" : { "type" : "string" @@ -2970,7 +2983,8 @@ "type" : "object" }, "pattern" : { - "type" : "string" + "type" : "string", + "enum" : [ "InOnly", "InOut", "InOptionalOut" ] }, "uri" : { "type" : "string" @@ -3303,7 +3317,8 @@ "type" : "object" }, "pattern" : { - "type" : "string" + "type" : "string", + "enum" : [ "InOnly", "InOut", "InOptionalOut" ] }, "uri" : { "type" : "string" @@ -3362,7 +3377,8 @@ "type" : "number" }, "units" : { - "type" : "string" + "type" : "string", + "enum" : [ "NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS", "DAYS" ] } } }, @@ -3564,7 +3580,8 @@ "type" : "string" }, "lookup" : { - "type" : "string" + "type" : "string", + "enum" : [ "environment", "dns", "client" ] }, "masterUrl" : { "type" : "string" @@ -3664,7 +3681,8 @@ "$ref" : "#/items/definitions/org.apache.camel.model.cloud.PassThroughServiceCallServiceFilterConfiguration" }, "pattern" : { - "type" : "string" + "type" : "string", + "enum" : [ "InOnly", "InOut", "InOptionalOut" ] }, "serviceChooserRef" : { "type" : "string" @@ -3753,7 +3771,8 @@ "$ref" : "#/items/definitions/org.apache.camel.model.cloud.PassThroughServiceCallServiceFilterConfiguration" }, "pattern" : { - "type" : "string" + "type" : "string", + "enum" : [ "InOnly", "InOut", "InOptionalOut" ] }, "serviceChooserRef" : { "type" : "string" @@ -4001,7 +4020,8 @@ "type" : "string" }, "outputFormat" : { - "type" : "string" + "type" : "string", + "enum" : [ "NTRIPLES", "TURTLE", "NQUADS", "RDFXML", "JSONLD", "RDFJSON", "RDF4JMODEL" ] } } } ] @@ -4165,7 +4185,8 @@ "type" : "string" }, "type" : { - "type" : "string" + "type" : "string", + "enum" : [ "Csv", "Fixed", "KeyValue" ] }, "unwrapSingleInstance" : { "type" : "boolean" @@ -4274,7 +4295,8 @@ "type" : "boolean" }, "formatName" : { - "type" : "string" + "type" : "string", + "enum" : [ "DEFAULT", "EXCEL", "INFORMIX_UNLOAD", "INFORMIX_UNLOAD_CSV", "MYSQL", "RFC4180" ] }, "formatRef" : { "type" : "string" @@ -4319,7 +4341,8 @@ "type" : "boolean" }, "quoteMode" : { - "type" : "string" + "type" : "string", + "enum" : [ "ALL", "ALL_NON_NULL", "MINIMAL", "NON_NUMERIC", "NONE" ] }, "recordConverterRef" : { "type" : "string" @@ -4517,7 +4540,8 @@ "type" : "boolean" }, "fhirVersion" : { - "type" : "string" + "type" : "string", + "enum" : [ "DSTU2", "DSTU2_HL7ORG", "DSTU2_1", "DSTU3", "R4", "R5" ] }, "id" : { "type" : "string" @@ -4573,7 +4597,8 @@ "type" : "boolean" }, "fhirVersion" : { - "type" : "string" + "type" : "string", + "enum" : [ "DSTU2", "DSTU2_HL7ORG", "DSTU2_1", "DSTU3", "R4", "R5" ] }, "id" : { "type" : "string" @@ -4798,7 +4823,8 @@ "type" : "string" }, "schemaSeverityLevel" : { - "type" : "number" + "type" : "string", + "enum" : [ "0", "1", "2" ] }, "xmlStreamWriterWrapper" : { "type" : "string" @@ -5001,7 +5027,8 @@ "type" : "string" }, "contentTypeFormat" : { - "type" : "string" + "type" : "string", + "enum" : [ "native", "json" ] }, "contentTypeHeader" : { "type" : "boolean" @@ -5088,7 +5115,8 @@ "type" : "string" }, "version" : { - "type" : "string" + "type" : "string", + "enum" : [ "1.1", "1.2" ] } } } ], @@ -5129,7 +5157,8 @@ "type" : "object", "properties" : { "contentTypeFormat" : { - "type" : "string" + "type" : "string", + "enum" : [ "binary", "json", "sjson" ] }, "contentTypeHeader" : { "type" : "boolean" @@ -5147,7 +5176,8 @@ "type" : "object", "properties" : { "dataObjectType" : { - "type" : "string" + "type" : "string", + "enum" : [ "org.w3c.dom.Node", "java.lang.String" ] }, "id" : { "type" : "string" @@ -5358,13 +5388,15 @@ "type" : "boolean" }, "digestAlgorithm" : { - "type" : "string" + "type" : "string", + "enum" : [ "SHA1", "SHA256", "SHA512" ] }, "id" : { "type" : "string" }, "keyCipherAlgorithm" : { - "type" : "string" + "type" : "string", + "enum" : [ "RSA_v1dot5", "RSA_OAEP", "RSA_OAEP_11" ] }, "keyOrTrustStoreParametersRef" : { "type" : "string" @@ -5373,7 +5405,8 @@ "type" : "string" }, "mgfAlgorithm" : { - "type" : "string" + "type" : "string", + "enum" : [ "MGF1_SHA1", "MGF1_SHA256", "MGF1_SHA512" ] }, "passPhrase" : { "type" : "string" @@ -5391,7 +5424,8 @@ "type" : "boolean" }, "xmlCipherAlgorithm" : { - "type" : "string" + "type" : "string", + "enum" : [ "TRIPLEDES", "AES_128", "AES_128_GCM", "AES_192", "AES_192_GCM", "AES_256", "AES_256_GCM", "SEED_128", "CAMELLIA_128", "CAMELLIA_192", "CAMELLIA_256" ] } } }, @@ -5435,7 +5469,8 @@ } }, "mode" : { - "type" : "string" + "type" : "string", + "enum" : [ "NO_REFERENCES", "ID_REFERENCES", "XPATH_RELATIVE_REFERENCES", "XPATH_ABSOLUTE_REFERENCES", "SINGLE_NODE_XPATH_RELATIVE_REFERENCES", "SINGLE_NODE_XPATH_ABSOLUTE_REFERENCES" ] }, "omitFields" : { "type" : "array", @@ -5512,7 +5547,8 @@ "type" : "object", "properties" : { "compressionLevel" : { - "type" : "number" + "type" : "string", + "enum" : [ "-1", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" ] }, "id" : { "type" : "string" @@ -5555,7 +5591,8 @@ "type" : "string" }, "level" : { - "type" : "string" + "type" : "string", + "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ] }, "logName" : { "type" : "string" @@ -5600,7 +5637,8 @@ "type" : "string" }, "level" : { - "type" : "string" + "type" : "string", + "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ] }, "logName" : { "type" : "string" @@ -5656,7 +5694,8 @@ "type" : "string" }, "level" : { - "type" : "string" + "type" : "string", + "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ] }, "logName" : { "type" : "string" @@ -5683,7 +5722,8 @@ "type" : "string" }, "rollbackLoggingLevel" : { - "type" : "string" + "type" : "string", + "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ] }, "transactedPolicyRef" : { "type" : "string" @@ -5714,7 +5754,8 @@ "type" : "string" }, "level" : { - "type" : "string" + "type" : "string", + "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ] }, "logName" : { "type" : "string" @@ -5741,7 +5782,8 @@ "type" : "string" }, "rollbackLoggingLevel" : { - "type" : "string" + "type" : "string", + "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ] }, "transactedPolicyRef" : { "type" : "string" @@ -6017,7 +6059,8 @@ "type" : "string" }, "option" : { - "type" : "string" + "type" : "string", + "enum" : [ "DEFAULT_PATH_LEAF_TO_NULL", "ALWAYS_RETURN_LIST", "AS_PATH_LIST", "SUPPRESS_EXCEPTIONS", "REQUIRE_PROPERTIES" ] }, "resultType" : { "type" : "string" @@ -6075,7 +6118,8 @@ "type" : "string" }, "scope" : { - "type" : "string" + "type" : "string", + "enum" : [ "Singleton", "Request", "Prototype" ] }, "trim" : { "type" : "boolean" @@ -6250,7 +6294,8 @@ "type" : "string" }, "mode" : { - "type" : "string" + "type" : "string", + "enum" : [ "i", "w", "u", "t" ] }, "trim" : { "type" : "boolean" @@ -6290,7 +6335,8 @@ "type" : "boolean" }, "resultType" : { - "type" : "string" + "type" : "string", + "enum" : [ "NUMBER", "STRING", "BOOLEAN", "NODESET", "NODE" ] }, "saxon" : { "type" : "boolean" @@ -6483,7 +6529,8 @@ "type" : "boolean" }, "bindingMode" : { - "type" : "string" + "type" : "string", + "enum" : [ "off", "auto", "json", "xml", "json_xml" ] }, "clientRequestValidation" : { "type" : "boolean" @@ -6548,7 +6595,8 @@ "type" : "boolean" }, "bindingMode" : { - "type" : "string" + "type" : "string", + "enum" : [ "off", "auto", "json", "xml", "json_xml" ] }, "clientRequestValidation" : { "type" : "boolean" @@ -6613,7 +6661,8 @@ "type" : "boolean" }, "bindingMode" : { - "type" : "string" + "type" : "string", + "enum" : [ "off", "auto", "json", "xml", "json_xml" ] }, "clientRequestValidation" : { "type" : "boolean" @@ -6693,7 +6742,8 @@ "type" : "string" }, "flow" : { - "type" : "string" + "type" : "string", + "enum" : [ "implicit", "password", "application", "clientCredentials", "accessCode", "authorizationCode" ] }, "key" : { "type" : "string" @@ -6782,7 +6832,8 @@ "type" : "boolean" }, "bindingMode" : { - "type" : "string" + "type" : "string", + "enum" : [ "off", "auto", "json", "xml", "json_xml" ] }, "clientRequestValidation" : { "type" : "boolean" @@ -6847,7 +6898,8 @@ "type" : "boolean" }, "bindingMode" : { - "type" : "string" + "type" : "string", + "enum" : [ "off", "auto", "json", "xml", "json_xml" ] }, "clientRequestValidation" : { "type" : "boolean" @@ -6912,7 +6964,8 @@ "type" : "boolean" }, "bindingMode" : { - "type" : "string" + "type" : "string", + "enum" : [ "off", "auto", "json", "xml", "json_xml" ] }, "clientRequestValidation" : { "type" : "boolean" @@ -7035,7 +7088,8 @@ "type" : "object", "properties" : { "bindingMode" : { - "type" : "string" + "type" : "string", + "enum" : [ "off", "auto", "json", "xml", "json_xml" ] }, "clientRequestValidation" : { "type" : "boolean" @@ -7073,7 +7127,8 @@ "type" : "object", "properties" : { "apiComponent" : { - "type" : "string" + "type" : "string", + "enum" : [ "openapi", "swagger" ] }, "apiContextPath" : { "type" : "string" @@ -7098,7 +7153,8 @@ "type" : "boolean" }, "component" : { - "type" : "string" + "type" : "string", + "enum" : [ "platform-http", "servlet", "jetty", "undertow", "netty-http", "coap" ] }, "componentProperty" : { "type" : "array", @@ -7153,7 +7209,8 @@ "type" : "string" }, "producerComponent" : { - "type" : "string" + "type" : "string", + "enum" : [ "vertx-http", "http", "undertow", "netty-http" ] }, "scheme" : { "type" : "string" @@ -7176,7 +7233,8 @@ "type" : "boolean" }, "bindingMode" : { - "type" : "string" + "type" : "string", + "enum" : [ "off", "auto", "json", "xml", "json_xml" ] }, "clientRequestValidation" : { "type" : "boolean"
