nicolaferraro commented on issue #1980: URL: https://github.com/apache/camel-k/issues/1980#issuecomment-771454976
> I like this idea and would add the possibility for: > > * references to external schemas (I.e. in schema registry) > * Schemas attached to the message in transit (I.e in header) Yeah, these are concerns we need to address now as well. The `schema` prop is set to JSONSchema currently, but we need to address other kinds of schemas, including schemas located elsewhere. I think it's a good time to deprecate `spec` -> `types` and provide something like `spec` -> `dataTypes` just to build a different tree and provide oob migration from old Kamelets. For the "schema in header", I think it's a good idea for sources. We can make sure the operator passes the location of the schema in a configuration property and, in case the schema is inline, it also mount it as a file in the pod, so that the header can always be an URL. The Kamelet runtime may also bind that property into a header. The destination (or an intermediate step) can the use that URL to do stuff. Wdyt @lburgazzoli ? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
