cancel
Showing results for 
Search instead for 
Did you mean: 

API Swagger from Business Hub failing to validate as type is not a single value

0 Kudos

Hi,

we downloaded the Swagger 2.0 definition from https://api.sap.com/api/API_SALES_ORDER_SRV/overview?name=API_SALES_ORDER_SRV&type=JSON∾tion=downloa... and it is failing to validate when importing at our API Management tool, and also in SwaggerHub editor.

It looks related to type having a list/array as value

For example:

[...]

"SalesOrderType": {

"type": [ "string", "null" ],

"maxLength": 4,

[...]"

Based on https://swagger.io/docs/specification/data-models/data-types/, this is not valid.

Have any of your experienced this, and what are the workarounds the SAP community has taken?

Thanks,

Emmanuel.

Accepted Solutions (0)

Answers (0)