You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "mgubaidullin (via GitHub)" <gi...@apache.org> on 2023/06/16 15:24:25 UTC
[GitHub] [camel-karavan] mgubaidullin opened a new issue, #798: YAML reader/writer for arrays
mgubaidullin opened a new issue, #798:
URL: https://github.com/apache/camel-karavan/issues/798
The following parameters in YAML DSL defined as arrays:
```
org.apache.camel.model.ChoiceDefinition when
org.apache.camel.model.GlobalOptionsDefinition globalOption
org.apache.camel.model.RouteConfigurationDefinition intercept
org.apache.camel.model.RouteConfigurationDefinition interceptFrom
org.apache.camel.model.RouteConfigurationDefinition interceptSendToEndpoint
org.apache.camel.model.RouteConfigurationDefinition onCompletion
org.apache.camel.model.RouteConfigurationDefinition onException
org.apache.camel.model.RouteTemplateBeanDefinition property
org.apache.camel.model.RouteTemplateDefinition beans
org.apache.camel.model.RouteTemplateDefinition parameters
org.apache.camel.model.SagaDefinition option
org.apache.camel.model.TemplatedRouteBeanDefinition property
org.apache.camel.model.TemplatedRouteDefinition beans
org.apache.camel.model.TemplatedRouteDefinition parameters
org.apache.camel.model.TryDefinition doCatch
org.apache.camel.model.cloud.BlacklistServiceCallServiceFilterConfiguration properties
org.apache.camel.model.cloud.CachingServiceCallServiceDiscoveryConfiguration properties
org.apache.camel.model.cloud.CombinedServiceCallServiceDiscoveryConfiguration properties
org.apache.camel.model.cloud.CombinedServiceCallServiceFilterConfiguration properties
org.apache.camel.model.cloud.ConsulServiceCallServiceDiscoveryConfiguration properties
org.apache.camel.model.cloud.CustomServiceCallServiceFilterConfiguration properties
org.apache.camel.model.cloud.DefaultServiceCallServiceLoadBalancerConfiguration properties
org.apache.camel.model.cloud.DnsServiceCallServiceDiscoveryConfiguration properties
org.apache.camel.model.cloud.HealthyServiceCallServiceFilterConfiguration properties
org.apache.camel.model.cloud.KubernetesServiceCallServiceDiscoveryConfiguration properties
org.apache.camel.model.cloud.PassThroughServiceCallServiceFilterConfiguration properties
org.apache.camel.model.cloud.ServiceCallExpressionConfiguration properties
org.apache.camel.model.cloud.ServiceCallServiceChooserConfiguration properties
org.apache.camel.model.cloud.ServiceCallServiceDiscoveryConfiguration properties
org.apache.camel.model.cloud.ServiceCallServiceFilterConfiguration properties
org.apache.camel.model.cloud.ServiceCallServiceLoadBalancerConfiguration properties
org.apache.camel.model.cloud.StaticServiceCallServiceDiscoveryConfiguration properties
org.apache.camel.model.cloud.ZooKeeperServiceCallServiceDiscoveryConfiguration properties
org.apache.camel.model.dataformat.Any23DataFormat configuration
org.apache.camel.model.dataformat.UniVocityCsvDataFormat univocityHeader
org.apache.camel.model.dataformat.UniVocityFixedDataFormat univocityHeader
org.apache.camel.model.dataformat.UniVocityTsvDataFormat univocityHeader
org.apache.camel.model.dataformat.XStreamDataFormat aliases
org.apache.camel.model.dataformat.XStreamDataFormat converters
org.apache.camel.model.dataformat.XStreamDataFormat implicitCollections
org.apache.camel.model.dataformat.XStreamDataFormat omitFields
org.apache.camel.model.dataformat.YAMLDataFormat typeFilter
org.apache.camel.model.language.XMLTokenizerExpression namespace
org.apache.camel.model.language.XPathExpression namespace
org.apache.camel.model.language.XQueryExpression namespace
org.apache.camel.model.rest.DeleteDefinition param
org.apache.camel.model.rest.DeleteDefinition responseMessage
org.apache.camel.model.rest.DeleteDefinition security
org.apache.camel.model.rest.GetDefinition param
org.apache.camel.model.rest.GetDefinition responseMessage
org.apache.camel.model.rest.GetDefinition security
org.apache.camel.model.rest.HeadDefinition param
org.apache.camel.model.rest.HeadDefinition responseMessage
org.apache.camel.model.rest.HeadDefinition security
org.apache.camel.model.rest.OAuth2Definition scopes
org.apache.camel.model.rest.ParamDefinition allowableValues
org.apache.camel.model.rest.ParamDefinition examples
org.apache.camel.model.rest.PatchDefinition param
org.apache.camel.model.rest.PatchDefinition responseMessage
org.apache.camel.model.rest.PatchDefinition security
org.apache.camel.model.rest.PostDefinition param
org.apache.camel.model.rest.PostDefinition responseMessage
org.apache.camel.model.rest.PostDefinition security
org.apache.camel.model.rest.PutDefinition param
org.apache.camel.model.rest.PutDefinition responseMessage
org.apache.camel.model.rest.PutDefinition security
org.apache.camel.model.rest.ResponseHeaderDefinition allowableValues
org.apache.camel.model.rest.ResponseMessageDefinition examples
org.apache.camel.model.rest.ResponseMessageDefinition header
org.apache.camel.model.rest.RestConfigurationDefinition apiProperty
org.apache.camel.model.rest.RestConfigurationDefinition componentProperty
org.apache.camel.model.rest.RestConfigurationDefinition consumerProperty
org.apache.camel.model.rest.RestConfigurationDefinition corsHeaders
org.apache.camel.model.rest.RestConfigurationDefinition dataFormatProperty
org.apache.camel.model.rest.RestConfigurationDefinition endpointProperty
org.apache.camel.model.rest.RestDefinition delete
org.apache.camel.model.rest.RestDefinition get
org.apache.camel.model.rest.RestDefinition head
org.apache.camel.model.rest.RestDefinition patch
org.apache.camel.model.rest.RestDefinition post
org.apache.camel.model.rest.RestDefinition put
org.apache.camel.model.rest.RestDefinition securityRequirements
org.apache.camel.model.rest.RestsDefinition rest
```
However Camel framework parser requires different YAML representation for these parameters, ex.:
1. doCatch
```
doCatch:
- exception:
- java.io.IOException
id: doCatch-cbfa
steps:
- log:
message: ${body}
id: log-78fd
- exception:
- java.io.IOException
id: doCatch-e7a4
steps:
- log:
message: ${body}
id: log-7c1c
```
3. intercept
```
- routeConfiguration:
intercept:
- intercept:
id: intercept-9b31
steps:
- log:
message: Interceptor ${body}
id: log-c2f5
```
karavan-generator uses YAML DSL schema and catalog to generate Typescript objects and YAML reader/writer.
To make it work I would like to propose one of the following options:
1. Sync required YAML representation
2. Set additional configuration in camelYamlDsl.json or catalog metadata to define YAML rules for array
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] mgubaidullin commented on issue #798: YAML reader/writer for arrays
Posted by "mgubaidullin (via GitHub)" <gi...@apache.org>.
mgubaidullin commented on issue #798:
URL: https://github.com/apache/camel-karavan/issues/798#issuecomment-1594898710
Can we set additional configuration in camelYamlDsl.json or catalog metadata to define YAML rules for particular arrays?
In that case we could control karavan generator from camel itself like we do for DSL and components
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] mgubaidullin commented on issue #798: YAML reader/writer for arrays
Posted by "mgubaidullin (via GitHub)" <gi...@apache.org>.
mgubaidullin commented on issue #798:
URL: https://github.com/apache/camel-karavan/issues/798#issuecomment-1594868745
@davsclaus ^^^ thoughts?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] davsclaus commented on issue #798: YAML reader/writer for arrays
Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on issue #798:
URL: https://github.com/apache/camel-karavan/issues/798#issuecomment-1594892901
We dont have total freedom to change the core model and therefore the yaml-dsl. We are "hurt" by some limitations and Java inheritance from JAXB that was the model that Camel has been used for DSL for 15 years.
Camel v5 has a goal of re-creating a new universal model without any "problems".
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org