You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* gh-955:
Polish "Raise the minimum support version of Spring Framework to 7.0"
Raise the minimum support version of Spring Framework to 7.0
Closesgh-955
Copy file name to clipboardExpand all lines: docs/src/docs/asciidoc/documenting-your-api.adoc
-2
Original file line number
Diff line number
Diff line change
@@ -802,8 +802,6 @@ Uses the static `parameterWithName` method on `org.springframework.restdocs.requ
802
802
803
803
The result is a snippet named `path-parameters.adoc` that contains a table describing the path parameters that are supported by the resource.
804
804
805
-
TIP: If you use MockMvc with Spring Framework 6.1 or earlier, to make the path parameters available for documentation, you must build the request by using one of the methods on `RestDocumentationRequestBuilders` rather than `MockMvcRequestBuilders`.
806
-
807
805
When documenting path parameters, the test fails if an undocumented path parameter is used in the request.
808
806
Similarly, the test also fails if a documented path parameter is not found in the request and the path parameter has not been marked as optional.
Copy file name to clipboardExpand all lines: spring-restdocs-core/src/main/java/org/springframework/restdocs/operation/preprocess/HeadersModifyingOperationPreprocessor.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2014-2023 the original author or authors.
2
+
* Copyright 2014-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Copy file name to clipboardExpand all lines: spring-restdocs-core/src/main/java/org/springframework/restdocs/operation/preprocess/UriModifyingOperationPreprocessor.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2014-2023 the original author or authors.
2
+
* Copyright 2014-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -147,7 +147,7 @@ public OperationResponse preprocess(OperationResponse response) {
147
147
148
148
privateHttpHeadersmodify(HttpHeadersheaders) {
149
149
HttpHeadersmodified = newHttpHeaders();
150
-
for (Entry<String, List<String>> header : headers.entrySet()) {
150
+
for (Entry<String, List<String>> header : headers.headerSet()) {
Copy file name to clipboardExpand all lines: spring-restdocs-core/src/test/java/org/springframework/restdocs/config/RestDocumentationConfigurerTests.java
+3-3
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2014-2023 the original author or authors.
2
+
* Copyright 2014-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -210,7 +210,7 @@ public void customDefaultOperationRequestPreprocessor() {
Copy file name to clipboardExpand all lines: spring-restdocs-core/src/test/java/org/springframework/restdocs/operation/preprocess/HeadersModifyingOperationPreprocessorTests.java
+47-36
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2014-2023 the original author or authors.
2
+
* Copyright 2014-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
0 commit comments