Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14238

Ensure generated catalog is providing a valid json even if there is no description provided

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0.RC3
    • Fix Version/s: 3.1.0
    • Component/s: camel-catalog
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      in case, no description is provided, it is taking the copyright header and it can insert several lines in the json files, which is not supported by the JSON format.

      see https://github.com/apache/camel-k-runtime/issues/203 for a real case

      on implementation it can be (one or several of these):

      • fail build if json is invalid in general
      • don't provide any description inside catalog, or an empty one if the javadoc is not put directly on the class component
      • fail build if the javadoc is not put directly on the class component

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              apupier Aurélien Pupier
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: