[
https://issues.apache.org/jira/browse/CAMEL-24898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-24898.
---------------------------------
Resolution: Fixed
> camel-jbang - camel_catalog_doc and camel_catalog_sample resolve the YAML
> names of data formats (json -> jackson, and the YAML shape)
> -------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-24898
> URL: https://issues.apache.org/jira/browse/CAMEL-24898
> Project: Camel
> Issue Type: Improvement
> Components: camel-jbang
> Reporter: Claus Ibsen
> Priority: Major
> Fix For: 4.23.0
>
>
> The YAML DSL names the JSON data format {{json:}} with {{library: Jackson}};
> the catalog names it by artifact, {{jackson}}. {{camel_catalog_doc json}}
> answers "Data format not found: json" with the suggestions fastjson,
> fhirJson, groovyJson, gson, jackson, and {{camel_catalog_doc jackson}} shows
> the component options without the YAML shape. In the camel-jbang-mcp stepwise
> benchmark (connect/stock-api, series s6) the local model looped six calls
> between json, jackson and json-jackson and ran out of its budget without
> writing the marshal step.
> camel_catalog_doc (and camel_catalog_sample) should resolve the YAML names:
> json -> the jackson doc, headed with the YAML shape {{marshal: {json:
> {library: Jackson}}}} (Gson, Fastjson, Jsonb likewise); the same for the
> other data formats whose YAML key differs from the artifact (yaml ->
> snakeYaml, avro/protobuf libraries, xml -> jacksonXml). The suggestions of a
> miss should name the YAML key first.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)