Hello, I currently have a response that contains examples, but when I imported it, the examples specific to it were not extracted.
Can you send us the file you imported for testing?
Here is the file
The solution is to make the response inline, but I want to know the reason why the examples are not being displayed
status = StatusCode::UNAUTHORIZED, response = inline(UnauthorizedResponse)
"401": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CodeError"
},
"examples": {
"Expired token": {
"value": {
"code": 4003,
"message": "EXPIRED_TOKEN",
"info": null
}
},
"Invalid token": {
"value": {
"code": 4002,
"message": "INVALID_TOKEN",
"info": null
}
},
// ..............
}
Instead of:
"401": {
"$ref": "#/components/responses/UnauthorizedResponse"
},
Thank you for your feedback. We will investigate this issue promptly, and if there is indeed a problem, we will fix it as soon as possible.
Thank you, please inform me when you find the reason, whether it’s an issue with my schema or if it’s something not supported yet, which you will support in the future.
We fixed this issue in version 2.5.20, please upgrade and try it. When importing Swagger/OpenAPI files, support for parsing content referenced in the response, including examples.