Expose RemoveJsonAttributesResponseBody YAML shortcut on MVC - #4261
Expose RemoveJsonAttributesResponseBody YAML shortcut on MVC#4261kalayciburak wants to merge 1 commit into
Conversation
|
Nice catch that the functional implementation already lives on One thing worth calling out: this also activates My main suggestion is a test for the path #4240 actually breaks on. The three added tests only assert the output of This is worth doing specifically because Minor: the tail handling differs slightly from the reactive |
Implement Shortcut.Type.LIST_TAIL_FLAG normalization and register the filter on FilterFunctions so documented MVC routes can use RemoveJsonAttributesResponseBody=id,color[,true]. Add e2e properties route tests covering registration through live filter application. Fixes spring-cloudgh-4240 Signed-off-by: Burak Kalayci <kalayciburak1996@gmail.com>
|
yeah fair — added e2e properties routes that hit registration → invoke → live filter (no-flag + trailing true), plus a short note on why we always default the flag to false vs reactive. pushed. |
92f739f to
60a8037
Compare
Summary
Shortcut.Type.LIST_TAIL_FLAGargument normalization (list fields + optional trailing boolean), matching WebFluxGATHER_LIST_TAIL_FLAGbehaviorFilterFunctions.removeJsonAttributesResponseBodyso the documented MVC shortcutRemoveJsonAttributesResponseBody=id,color[,true]resolvesAfterFilterFunctions; YAML/properties discovery only looks atFilterFunctionsFixes #4240
Testing
./mvnw -pl spring-cloud-gateway-server-webmvc -am test -Dtest=NormalizedOperationMethodTests,AfterFilterFunctionsTests