Skip to content

fix: ignore an injected WebSession parameter - #3355

Merged
bnasslahsen merged 1 commit into
springdoc:mainfrom
kdelay:fix/webflux-ignore-websession
Oct 23, 2026
Merged

bnasslahsen merged 1 commit into
springdoc:mainfrom
kdelay:fix/webflux-ignore-websession

Conversation

@kdelay

@kdelay kdelay commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

WebSession is injected by WebFlux without an annotation, but the WebFlux RequestService ignore list only holds ServerWebExchange, ServerHttpRequest, ServerHttpResponse and ServerRequest. A handler that asks for one gets it documented:

{"name":"session","in":"query","required":true,"schema":{"$ref":"#/components/schemas/WebSession"}}

with components.schemas.WebSession holding the whole interface (id, attributes, creationTime, expired, lastAccessTime, maxIdleTime, started). Same shape as #3317.

This adds WebSession to that list, and app204 under v30 and v31. Dropping the one-line change makes both fail with components Unexpected: schemas ; paths./hello.get.parameters[]: Expected 1 values but got 2. mvn test -pl springdoc-openapi-starter-webflux-api is 138 tests, 0 failures.

@bnasslahsen
bnasslahsen merged commit c5802c7 into springdoc:main Oct 23, 2026
1 check passed
@bnasslahsen

Copy link
Copy Markdown
Collaborator

Thanks @kdelay! Merged into main and backported to spring-boot-3 as 5f55c93.

bnasslahsen added a commit that referenced this pull request Oct 24, 2026
A duplicated Fixed heading made a changelog update keep only the second
section, dropping the entries for gh-3352, gh-3354, gh-3355, gh-3364 and
gh-3368.

Signed-off-by: Badr NASS LAHSEN <badr.nasslahsen@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants