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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.20.0
    • 2.20.1, 2.21.0
    • camel-swagger, rest
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: