You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/06/12 05:01:00 UTC

[jira] [Resolved] (CAMEL-15180) camel-restdsl-openapi-plugin NPE on optional field parameter.explode

     [ https://issues.apache.org/jira/browse/CAMEL-15180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-15180.
---------------------------------
    Fix Version/s:     (was: 3.5.0)
                   3.4.0
       Resolution: Fixed

Awesome thanks for reporting and the PR

> camel-restdsl-openapi-plugin NPE on optional field parameter.explode
> --------------------------------------------------------------------
>
>                 Key: CAMEL-15180
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15180
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-rest-openapi
>    Affects Versions: 3.3.0
>            Reporter: Jose Montoya
>            Priority: Minor
>             Fix For: 3.4.0
>
>
> Hey all, wanted to give the plugin a spin as we look to migrate some services from mule to camel and couldn't get the plugin to work for a simple project. -Checked out plugin code and the tests are failing. I'll try to dig in and see what I can figure out but though I'd create an ticket for this.-
> -Here's the report from maven:-
>  -[INFO] — maven-invoker-plugin:3.2.1:verify (integration-test) @ camel-restdsl-openapi-plugin —-
>  -[INFO] --------------------------------------------------
>  -[INFO] Build Summary:-
>  -[INFO] Passed: 5, Failed: 6, Errors: 0, Skipped: 0-
>  -[INFO] --------------------------------------------------
>  -[ERROR] The following builds failed:-
>  -[ERROR] * customized-v3/pom.xml-
>  -[ERROR] * simple-dto-v3/pom.xml-
>  -[ERROR] * simple-xml-dto-v3/pom.xml-
>  -[ERROR] * customized/pom.xml-
>  -[ERROR] * simple-dto/pom.xml-
>  -[ERROR] * simple-xml-dto/pom.xml-
> ----
> Edit:
> The failing integration tests were an error on my part when running the tests locally. However I found the cause for the original issue I was having where the plugin was not generating routes. I used the OpenAPI available here [https://github.com/OAI/OpenAPI-Specification/blob/master/examples/v3.0/petstore-expanded.yaml] The generator failed to parse it correctly because one of its parameters is of type `form` but does not explicitly set `explode` to anything so it results in a NPE. The spec states that `form` defaults to `true`



--
This message was sent by Atlassian Jira
(v8.3.4#803005)