Hi Bernard,

APIM 2.1.0 supports swagger version 2.0 and initially, we had implemented
only a json validation against the uploaded swagger definitions. As an
improvement, we have introduced a swagger spec validation to block
uploading invalid swagger definitions. This fix is available with APIM
2.6.0 vanilla distribution so whenever you upload a swagger resource to
create an API a swagger spec validation will be carried out.

This allowMultiple field in parameter object seems to have been removed in
swagger 2.0 (it was available with 1.2). Please refer [1] and [2]. So a v
2.0 swagger definition containing this allowMultiple field is an invalid
definition. You can verify this using [3].

Thus, you will face the shown error in APIM 2.6.0, if you try to upload a
swagger file with allowMultiple filed in a parameter object. In order to
fix this issue, you may have to fix your swagger file to comply with
swagger definition first.

Hope this would help.

[1].
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/1.2.md
[2].
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md
[3]. http://editor.swagger.io/

Thanks,
Sachini

On Mon, Jun 3, 2019 at 2:33 PM Bernard Paris <[email protected]>
wrote:

> Hello,
>
> no answer for this ?
> I just tested with wso2am-3.0.0-m33  and got exactly same issue when
> trying to load swagger json exported from APIM-2.1.
>
>
>
>
> Question: how to migrate dats form APIM-2.1 running PostGres  to APIM-2.6
> ou APIM-3.0 running mySQL
>
> Thanks,
> Bernard
>
>
>
> Le 27 mai 2019 à 17:00, Bernard Paris <[email protected]> a
> écrit :
>
> Hi,
>
> we want to migrate API définition datas from API manager 2.1 to 2.6.  Our
> API manager 2.1 runs postgres, the new 2.6 runs mysql.
>
> I tried this of  some APIs:  get  a swagger.json file out of API manager
> 2.1  then try to import it into API manager 2.6 under
>
> I Have an Existing API
> Use an existing API's endpoint or the API Swagger definition to create an
> API.
>
> but this fails for each API I tested.
>
> <PastedGraphic-1.png>
>
>
>
> So, what's wrong and what am I to do ? isn't this suppose to work ?
> If not what is the way to transfer datas to new system (with different
> DBM) ?
>
> Thanks,
> Bernard Paris
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 

*Sachini De Silva*
Software Engineer - WSO2

Email : [email protected]
Mobile : +94714765495
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to