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

camel-swagger-java - Generated swagger doc should use primitive types

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.20.0
    • Fix Version/s: 2.20.1, 2.21.0
    • Component/s: camel-swagger, rest
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      There are some known types which we should map better to Java primitive types
      https://swagger.io/specification/#schemaObject

      This does not happen in the responses schema generated.

      Where we have "format": "java.lang.String" which should not be there.

      See also
      https://stackoverflow.com/questions/46975303/suppressing-camel-specific-attributes-from-camel-generated-swagger-definition

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: