[
https://issues.apache.org/jira/browse/CAMEL-21579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18151675#comment-18151675
]
Claus Ibsen commented on CAMEL-21579:
-------------------------------------
The two warnings come from JKube, not from Camel: `oc:resource` validates its
generated resources, and JKube's
`ResourceValidator` lists the Fabric8 schema keywords to ignore (javaType,
$module, ...). `serializer` and
`deserializer` are not in that list yet. JKube fixed the same warning for
`$module` in eclipse-jkube/jkube#1934,
and the fix for these two belongs there too (filed as
https://github.com/eclipse-jkube/jkube/issues/4028). Camel could only turn the
resource
validation off, which is worse, so closing here as an upstream issue.
_Claude Code on behalf of davsclaus_
> Avoid "Unknown keyword serializer" and "Unknown keyword deserializer" when
> exporting project with JBang
> -------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-21579
> URL: https://issues.apache.org/jira/browse/CAMEL-21579
> Project: Camel
> Issue Type: Improvement
> Components: camel-jbang
> Affects Versions: 4.9.0
> Reporter: Aurélien Pupier
> Priority: Minor
>
> jbang '-Dcamel.jbang.version=4.9.0' camel@apache/camel init
> 'test-from-vscode.camel.yaml'
> jbang '-Dcamel.jbang.version=4.9.0' camel@apache/camel kubernetes run
> test-from-vscode.camel.yaml --camel-version=4.9.0 --cluster-type=openshift
> {noformat}
> [WARNING] Unknown keyword serializer - you should define your own Meta
> Schema. If the keyword is irrelevant for validation, just use a
> NonValidationKeyword or if it should generate annotations AnnotationKeyword
> [WARNING] Unknown keyword deserializer - you should define your own Meta
> Schema. If the keyword is irrelevant for validation, just use a
> NonValidationKeyword or if it should generate annotations AnnotationKeyword
> {noformat}
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)