Types will still be there and dataTypes are not mandatory.

Essentially dataTypes will be used to define a way of transforming the
output before passing to the sink.

So you'll have for example as out a binary types as default:
https://github.com/apache/camel-kamelets/blob/main/kamelets/aws-s3-source.kamelet.yaml#L106

and the binary types will be defined as:
https://github.com/apache/camel-kamelets/blob/main/kamelets/aws-s3-source.kamelet.yaml#L128

So you could have a default type, but also transform to something else like
cloudevents type:
https://github.com/apache/camel-kamelets/blob/main/kamelets/aws-s3-source.kamelet.yaml#L132

And this could be done through an action.

Il giorno mar 3 ott 2023 alle ore 18:33 Marat Gubaidullin <
marat.gubaidul...@gmail.com> ha scritto:

> Are we going to remove types and use dataTypes instead?
>
> Is dataTypes mandatory for Kamelet?
>
>
> On Tue, Oct 3, 2023, 12:30 Andrea Cosentino <anco...@gmail.com> wrote:
>
> > On the long term we plan to use dataTypes everywhere in the catalog.
> It's a
> > long work, but it makes the Kamelet metadata cleaner.
> >
> > Il giorno mar 3 ott 2023 alle ore 18:14 Pasquale Congiusti <
> > pasquale.congiu...@gmail.com> ha scritto:
> >
> > > Hi Marat,
> > > I think this is quite up to date [1]. Mutliple data types is a new
> > feature
> > > introduced in Camel 4 [2].
> > >
> > > [1]
> > >
> > >
> >
> https://camel.apache.org/camel-k/next/kamelets/kamelets-dev.html#_kamelet_data_types
> > > [2] https://issues.apache.org/jira/browse/CAMEL-18698
> > >
> > > On Tue, Oct 3, 2023 at 3:00 PM Marat Gubaidullin <
> > > marat.gubaidul...@gmail.com> wrote:
> > >
> > > > Hello Camel Devs,
> > > >
> > > > I'm working on Kamelet Designer in Karavan. And the last point to
> > > implement
> > > > is types.
> > > >
> > > > Some Kamelets have types, some do not.
> > > > In documentation there are dataTypes instead.
> > > >
> > > > Where could I get more information about that? Do we have spec or
> > > > something?
> > > >
> > > > Thanks
> > > > Marat
> > > >
> > >
> >
>

Reply via email to