Open ashera96 opened 1 year ago
Hi all,
io.swagger.util.Json.pretty
( swagger-core-1.6.9 )xml
as type: string
in array
data type. As an example in petsstore-swagger-v2, photoUrls
is defined as follows."photoUrls": {
"type": "array",
"xml": {
"wrapped": true
},
"items": {
"type": "string",
"xml": {
"name": "photoUrl"
}
}
}
xml
needs to be defined as type: object
"photoUrls": {
"type": "array",
"xml": {
"wrapped": true
},
"items": {
"type": "object",
"xml": {
"name": "photoUrl"
}
}
}
Thanks, Isuru
Description
Mock implementation feature is not working as expected when using a swagger definition as the OpenAPI URL. Refer to the reproducing steps mentioned below. By the looks of the stack trace, it seems to be a OAS2Parser related issue.
Steps to Reproduce
OpenAPI URL
.Mock Implementation
as the endpoint type and clickAdd
, the following stack trace is logged in the server. Even though this is logged, the UI shows no errors.[1] https://apim.docs.wso2.com/en/4.2.0/design/prototype-api/create-mocked-js-api/#step-1-create-the-interface-of-the-api [2] https://petstore.swagger.io/v2/swagger.json
Affected Component
APIM
Version
4.2.0
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response