"/api/games": {
"get": {
"tags": ["games"],
"operationId": "getGames",
"parameters": [
{
"name": "query",
"in": "query",
"schema": {
"$ref": "#/components/schemas/GetGamesQuery"
},
"description": "",
"required": true
}
],
"responses": {
"200": {
"description": "## Warning\n\nResponse data have been encrypted.\n\nThe response body data would be encrypted as \"AES-128(256) / CBC mode / PKCS#5 Padding / Base64 Encoding\", through the [EncryptedRoute.G.et](https://github.com/samchon/@nestia/core#encryptedroute) component.\n\nTherefore, just utilize this swagger editor only for referencing. If you need to call the real API, using [SDK](https://github.com/samchon/nestia#software-development-kit) would be much better.",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/GetGamesResponse"
}
}
},
"x-nestia-encrypted": true
}
}
}
},
Summary
Nestia swagger generates incorrect schema when using EncryptedRoute with @nestjs/cache-manager
When I use cache interceptor in a controller like this
the swagger generate not contain information about encrypted route:
but when I change the order of decorator like this every thing is ok