Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8158

@BeanParam arguments not properly translated to OpenApi

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.11, 3.3.4
    • Fix Version/s: 3.3.5, 3.2.12, 3.4.0
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When a method is defined as follows:

       /**
          * @param query query parameters
          */
      Response search(@BeanParam Query query);
      

      with the Query bean having more than one field, the OpenAPI description comes correctly with all parameters from Query but the first one shows the description from javadoc.

      This is due by the fact that in OpenApiCustomizer it is assumed that the JAX-RS parameters and OpenAPI parameters are the same, while @BeanParam breaks such condition.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ilgrosso Francesco Chicchiriccò
                Reporter:
                ilgrosso Francesco Chicchiriccò
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m