Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-13155

camel-restdsl-openapi-plugin nullpointerexception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.8-GA
    • fuse-7.6-GA
    • Camel
    • % %
    • build2
    • Hide

      Moving to 7.8

      Show
      Moving to 7.8
    • Hide

      A Maven project has been included (attached) to reproduce the 3 use cases.

      To reproduce, use the commands below:

      1) mvn camel-restdsl-openapi:generate-xml@param-operation-reference
      > plugin does NOT generates DSL, throws NullPointerException

      2) mvn camel-restdsl-openapi:generate-xml@param-path-reference
      > plugin generates DSL but param documentation is missing

      <get id="op" uri="/test/

      {myparam}">
      <to uri="direct:op"/>
      </get>

      3) mvn camel-restdsl-openapi:generate-xml@param-operation-inline
      > plugin seems to generate DSL successfully

      <get id="op" uri="/test/{myparam}

      ">
      <param name="myparam" required="true" type="path"/>
      <to uri="direct:op"/>
      </get>

      Show
      A Maven project has been included (attached) to reproduce the 3 use cases. To reproduce, use the commands below: 1) mvn camel-restdsl-openapi:generate-xml@param-operation-reference > plugin does NOT generates DSL, throws NullPointerException 2) mvn camel-restdsl-openapi:generate-xml@param-path-reference > plugin generates DSL but param documentation is missing <get id="op" uri="/test/ {myparam}"> <to uri="direct:op"/> </get> 3) mvn camel-restdsl-openapi:generate-xml@param-operation-inline > plugin seems to generate DSL successfully <get id="op" uri="/test/{myparam} "> <param name="myparam" required="true" type="path"/> <to uri="direct:op"/> </get>

      The new OpenAPI Camel plugin seems not able to handle OpenApi 3 specs containing references to parameters inside PATH operation definitions.

      3 use cases have been tested with the following results:

      1) Define Operation Parameter as a reference:
      > plugin does NOT generates DSL, throws NullPointerException

      2) Define Path Parameter as a reference
      > plugin generates DSL but param documentation is missing

      3) Define Operation Parameter inline
      > plugin seems to generate DSL successfully

        1. issue.tar.gz
          6 kB
          Bruno Meseguer

              acosenti Andrea Cosentino
              bmesegue@redhat.com Bruno Meseguer
              John Poth John Poth
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: