wso2 / api-manager

All issues, tasks, improvements and new features of WSO2 API Manager
Apache License 2.0
34 stars 8 forks source link

[APIM-4.3.0] OAS 3.1.0 loses data field types on import #2959

Closed Gayanthakaushal closed 2 months ago

Gayanthakaushal commented 3 months ago

Description

When trying to import a swagger with OAS version 3.1.0 in the APIM-4.3.0 version, we can observe that the data type property is removed from the API Definition in the publisher portal. According to the following OpenAPI Specification 3.1.0 documentation [1], data types are supported in the OAS Version 3.1.0.

This behavior was not observed with the previous OAS version such as 3.0.2.

[1] - https://swagger.io/specification/#:~:text=openapi.yaml.-,Data%20Types,-Data%20types%20in

Steps to Reproduce

  1. Try to import the attached OAS 3.1.0 sample API in the Publisher portal. openapi-3.1.yml.zip

  2. If we check the API definition in the publisher portal, we can observe that the data type fields have been removed from the definition.

Affected Component

APIM

Version

4.3.0

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response