[
https://issues.apache.org/jira/browse/CAMEL-22732?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18041880#comment-18041880
]
Claus Ibsen commented on CAMEL-22732:
-------------------------------------
I wonder if we should return null for values that are no present. Today we do a
if xxx != null check
{code:java}
Expected :{"runtime":"main","camelVersion":"4.14.0"}
Actual
:{"runtime":"main","camelVersion":"4.14.0","camelSpringBootVersion":null,"camelQuarkusVersion":null,"springBootVersion":null,"quarkusVersion":null,"camelSpringBootBomGroupId":null,"camelSpringBootBomArtifactId":null,"quarkusBomGroupId":null,"quarkusBo
...
{code}
> camel-jbang - Add DTO classes to represent json output
> ------------------------------------------------------
>
> Key: CAMEL-22732
> URL: https://issues.apache.org/jira/browse/CAMEL-22732
> Project: Camel
> Issue Type: Improvement
> Components: camel-jbang
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.17.0
>
>
> A number of commands has a --json flag to dump output in json. We should have
> a DTO class to represent the contract of the output, as today its just some
> Map inside the command itself.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)