This repository was archived by the owner on Dec 19, 2023. It is now read-only.
Commit 949eea6
Disable interpolation of Asciidoctor for the path part of the Rest Enpoint (#327)
* Disable interpolation of Asciidoctor for the path part of the Rest Endpoint
Previously, when generating Asciidoctor snipppets, based on this template, the path parameter was interpolated.
This was considered by Asciidoctor as an attributes which are typically surrounded by { and }.
This commit surrounds the path with + characters which disables all interpolation.
Closes #326
* Review unit test after having surrounded the content of 'default-auto-method-path.snippet' with a '+' to avoid interpolating path variables
Closes #3261 parent 259e879 commit 949eea6
File tree
2 files changed
+14
-3
lines changed- spring-auto-restdocs-core/src
- main/resources/org/springframework/restdocs/templates/asciidoctor
- test/java/capital/scalable/restdocs/misc
2 files changed
+14
-3
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
| |||
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
59 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
60 | 71 | | |
61 | 72 | | |
62 | 73 | | |
| |||
0 commit comments