[
https://issues.apache.org/jira/browse/CAMEL-23014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-23014:
--------------------------------
Description:
@XmlType(propOrder = \{ "resilience4jConfiguration",
"faultToleranceConfiguration", "outputs", "onFallback" })
public class CircuitBreakerDefinition extends
OutputDefinition<CircuitBreakerDefinition>
We would like yaml-dsl dumper to have onFallback after outputs. They are
defined in correct order in json file
"onFallback": { "index": 8
"outputs": { "index": 9
So its maybe something in yaml-dsl writer we can ensure that it uses this order
also
was:
@XmlType(propOrder = \{ "resilience4jConfiguration",
"faultToleranceConfiguration", "outputs", "onFallback" })
public class CircuitBreakerDefinition extends
OutputDefinition<CircuitBreakerDefinition> {
We would like onFallback to be after outputs, but the json metadata has
"onFallback": \{ "index": 8, "kind": "element", "displayName": "On Fallback",
"group": "common", "required": false, "type": "object", "javaType":
"org.apache.camel.model.OnFallbackDefinition", "deprecated": false,
"autowired": false, "secret": false, "description": "The fallback route path to
execute that does not go over the network. This should be a static or cached
result that can immediately be returned upon failure. If the fallback requires
network connection then use onFallbackViaNetwork() ." },
"outputs": \{ "index": 9, "kind": "element", "displayName": "Outputs", "group":
"common", "required": true, "type": "array", "javaType": "java.util.List",
"oneOf": [ "aggregate", "bean", "choice", "circuitBreaker", "claimCheck",
"convertBodyTo", "convertHeaderTo", "convertVariableTo", "delay", "doCatch",
"doFinally", "doTry", "dynamicRouter", "enrich", "filter",
"idempotentConsumer", "intercept", "interceptFrom", "interceptSendToEndpoint",
"kamelet", "loadBalance", "log", "loop", "marshal", "multicast",
"onCompletion", "onException", "pausable", "pipeline", "policy", "poll",
"pollEnrich", "process", "recipientList", "removeHeader", "removeHeaders",
"removeProperties", "removeProperty", "removeVariable", "resequence",
"resumable", "rollback", "routingSlip", "saga", "sample", "script",
"serviceCall", "setBody", "setExchangePattern", "setHeader", "setHeaders",
"setProperty", "setVariable", "setVariables", "sort", "split", "step", "stop",
"threads", "throttle", "throwException", "to", "toD", "tokenizer",
"transacted", "transform", "transformDataType", "unmarshal", "validate",
"wireTap" ], "deprecated": false, "autowired": false, "secret": false }
> camel-core - YAML DSL to respect @XmlType(propOrder ...
> -------------------------------------------------------
>
> Key: CAMEL-23014
> URL: https://issues.apache.org/jira/browse/CAMEL-23014
> Project: Camel
> Issue Type: Improvement
> Components: camel-core, camel-yaml-dsl
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 4.x
>
>
> @XmlType(propOrder = \{ "resilience4jConfiguration",
> "faultToleranceConfiguration", "outputs", "onFallback" })
> public class CircuitBreakerDefinition extends
> OutputDefinition<CircuitBreakerDefinition>
> We would like yaml-dsl dumper to have onFallback after outputs. They are
> defined in correct order in json file
>
> "onFallback": { "index": 8
> "outputs": { "index": 9
>
> So its maybe something in yaml-dsl writer we can ensure that it uses this
> order also
--
This message was sent by Atlassian Jira
(v8.20.10#820010)