-
Notifications
You must be signed in to change notification settings - Fork 539
Comparing changes
Open a pull request
base repository: nestjs/swagger
base: 11.4.1
head repository: nestjs/swagger
compare: 11.4.2
- 11 commits
- 9 files changed
- 4 contributors
Commits on Apr 23, 2026
-
Configuration menu - View commit details
-
Copy full SHA for c479844 - Browse repository at this point
Copy the full SHA c479844View commit details -
Merge pull request #3875 from nestjs/renovate/vite-8.x-lockfile
chore(deps): update dependency vite to v8.0.10
Configuration menu - View commit details
-
Copy full SHA for 6e1bb8f - Browse repository at this point
Copy the full SHA 6e1bb8fView commit details
Commits on Apr 24, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 9a3745b - Browse repository at this point
Copy the full SHA 9a3745bView commit details -
chore(deps): update dependency release-it to v20.0.1 (#3877)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for e054058 - Browse repository at this point
Copy the full SHA e054058View commit details
Commits on Apr 25, 2026
-
chore(deps): update dependency @commitlint/cli to v20.5.2 (#3878)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for a8acf7a - Browse repository at this point
Copy the full SHA a8acf7aView commit details
Commits on Apr 27, 2026
-
Merge pull request #3876 from y-hsgw/fix/plugin-string-literal-union-…
…type fix(plugin): handle IsIn enum inference when type falls back to Object
Configuration menu - View commit details
-
Copy full SHA for a51cf09 - Browse repository at this point
Copy the full SHA a51cf09View commit details -
fix(plugin): keep auto-inferred default response when only error Api*…
…Response decorators are present PR #3803 added a guard that suppresses the auto-inferred default response whenever any `Api*Response` decorator is present on a handler. The guard doesn't distinguish success (2xx) from error (4xx/5xx) decorators, so a handler with only `@ApiUnauthorizedResponse()` (or any other error-status decorator) loses its auto-inferred 2xx in the OpenAPI spec. Downstream client generators (NSwag, openapi-generator, ...) then treat the real 2xx response as an exception at runtime. Scope the guard to decorators whose status code is below 400 so error factories no longer suppress the default. The success/redirect case the original PR fixed (`@ApiFoundResponse` on a `@Redirect()` handler) continues to work — 302 is still below 400. Status codes are derived from the decorator name via the same `Api${PascalCase(HttpStatus key)}Response` convention the factories are generated from in `api-response.decorator.ts`. Unknown names (`ApiDefaultResponse`, user-defined) fall back to the previous behavior (treated as explicit). Closes #3862
Peter Grassberger committedApr 27, 2026 Configuration menu - View commit details
-
Copy full SHA for 977a139 - Browse repository at this point
Copy the full SHA 977a139View commit details -
test: inspect @apiresponse status arg and extend fixture with redirec…
…t/500 cases Extend the fix so that a plain `@ApiResponse({ status: N })` is also classified by its status code: a 4xx/5xx status no longer suppresses the auto-inferred 2xx. Non-literal `status` expressions (e.g. `HttpStatus.OK`) can't be evaluated at compile time and continue to be treated as explicit, preserving pre-existing behavior. Extend the regression fixture with: - `@Post @apiresponse({ status: 500 })` — asserts the default 201 is auto-added (the new arg-inspection case). - `@Get @reDIrect @ApiFoundResponse` — asserts no default is added, so the fix continues to honor #1639 for redirect handlers. The existing `app.controller` fixture had baked in the 11.2.7 behavior on the `create()` handler (multiple error-status `@ApiResponse` decorators); update it to the restored pre-11.2.7 output (default 201 alongside the error entries).Peter Grassberger committedApr 27, 2026 Configuration menu - View commit details
-
Copy full SHA for 7999f78 - Browse repository at this point
Copy the full SHA 7999f78View commit details -
refactor(plugin): make isSuccessOrRedirectApiResponseArg a private me…
…thod Address PR review nit: move the standalone helper into ControllerClassVisitor as a private method, since it's only used by addDecoratorToNode and doesn't need its own module.
Peter Grassberger committedApr 27, 2026 Configuration menu - View commit details
-
Copy full SHA for f01f6aa - Browse repository at this point
Copy the full SHA f01f6aaView commit details -
Merge pull request #3867 from PeterTheOne/fix-error-only-response-dec…
…orators-suppressing-default fix(plugin): keep auto-inferred default response when only error Api*Response decorators are present
Configuration menu - View commit details
-
Copy full SHA for b0a35f3 - Browse repository at this point
Copy the full SHA b0a35f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f58449 - Browse repository at this point
Copy the full SHA 3f58449View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 11.4.1...11.4.2