Skip to content

Fix mixed tab/space indentation introduced in PR #1's container-validation-annotation-leak fix - #2

Draft
jaipilot[bot] wants to merge 1 commit into
jaipilot-campaign/springdoc-openapi-3322-headfrom
jaipilot/pr-1-ss8hYU3LUyXC
Draft

Fix mixed tab/space indentation introduced in PR #1's container-validation-annotation-leak fix#2
jaipilot[bot] wants to merge 1 commit into
jaipilot-campaign/springdoc-openapi-3322-headfrom
jaipilot/pr-1-ss8hYU3LUyXC

Conversation

@jaipilot

@jaipilot jaipilot Bot commented Aug 22, 2026

Copy link
Copy Markdown

Context

PR #1 mirrors upstream springdoc-openapi#3322, fixing a bug where a @Pattern (or other) validation annotation on one List query parameter's element type leaked into sibling List parameters' item schemas. The functional fix lives in GenericParameterService#resolveTypeAndTypeAnnotationsForParameter, with supporting readability edits in AbstractRequestService and a javadoc fix in DelegatingMethodParameter, plus a new /persons endpoint and updated app267.json fixtures proving the fix.

What this companion does

This is a bounded, behavior-preserving cleanup pass on top of the exact PR head:

  • Behavior lock: confirmed the existing SpringDocApp267Test (v30 and v31) already characterizes the changed production paths (parameter-object field annotations and direct sibling list parameter annotations) and ran it unmodified before and after the edit with identical results.
  • Cleanup: the PR itself left one line of GenericParameterService.java indented with spaces instead of the file's tab convention, and reformatted both HelloController.java test fixtures (v30/v31 app267) from tabs to 4-space indentation, inconsistent with every sibling file in the same packages (e.g. PersonQueryFilter.java). Restored tab indentation in all three files. Verified with git diff -w that this is a pure whitespace change.
  • Performance: the only production behavior change (a Stream.concat(...).toList() replacing an Arrays.asList(...) call) resolves a handful of annotations once per OpenAPI parameter during spec generation, not a hot path; no measurable optimization was justified.
  • Modernization: the PR touches no build, dependency, or JDK/framework version; not applicable.

Verification

  • mvn -q -pl springdoc-openapi-starter-common,springdoc-openapi-starter-webmvc-api -am test -Dtest=SpringDocApp267Test -Dsurefire.failIfNoSpecifiedTests=false — 2/2 passed before and after.
  • mvn -q -pl springdoc-openapi-starter-common,springdoc-openapi-starter-webmvc-api -am clean verify -DskipITs — full module verify green: common 32/32, webmvc-api 646/646.

Limitations

  • No repository-wide full (all-module) build was run; verification is scoped to the two modules the original PR changes and their reactor dependencies, consistent with the bounded-improvement mandate.
  • The pre-existing formatting anomaly in app267.json (space-before-colon / missing trailing newline versus most sibling fixtures) was investigated but left unchanged: JSONAssert compares these fixtures semantically, several other pre-existing fixtures in the repository already use the same non-standard formatting, and reformatting was judged cosmetic noise rather than a proven defect within this bounded pass.

Generated by JAIPilot Cloud for #1 from Anthropic session sesn_01HedWhaqk3Kss8hYU3LUyXC.

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.

0 participants