Open rbarriuso opened 3 years ago
I have the same issue on nestjs/swagger 4.8.0
@TyrisDavidLopez @rbarriuso, did either of you find a solution for this?
None, as workaround, I'm processing the json to remove the 'undefined' fields on is used. But is not a solution.
Copied from https://github.com/nestjs/swagger/issues/1121
I'm submitting a...
Current behavior
"undefined" entries are present in the
OpenAPIObject
created bySwaggerModule.createDocument()
, when using the@Override
decorator from@nestjsx/crud
.Expected behavior
No "undefined" paths in the OpenAPI spec generated.
Minimal reproduction of the problem with instructions
docker-compose
.openapi-spec.json
file. Search for occurrences ofundefined
. Two are found.@Override
decorator inusers.controller.ts
.openapi-spec.json
. No occurrences ofundefined
are found.What is the motivation / use case for changing the behavior?
We write the
openapi-spec.json
file in order to generate the client side code withopenapi-generator-cli
. Due to these occurrences ofundefined
in the file, the generator outputs warnings.Environment
Also checked with
"@nestjsx/crud": "^4.6.2"
For Tooling issues:
Others:
N/A