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

Component docs - enum options that are optional should include a none enum

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • 2.16.2, 2.17.0
    • None
    • None
    • Unknown

    Description

      We should generate a "none" as the enum choice when its optional. Otherwise the enum choices make it appear that you must be one of them and therefore it becomes as mandatory option.

      For example the auth for http has these 3 enums

      "authMethodPriority":

      { "kind": "parameter", "group": "producer", "label": "producer", "type": "string", "javaType": "java.lang.String", "enum": [ "Basic", "Digest", "NTLM" ], "deprecated": "false", "description": "Authentication method for proxy either as Basic Digest or NTLM." }

      ,

      But we should have "none" as the 1st choice to indicate its not in use

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: