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
{{ message }}
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
Based on the issue above and the implemented solution, the template default-auto-method-path.snippet should be modified to make sure the path of the REST API is surrounded by + ... + which in turn will guarantee a pass-through of the whole string (see AsciiDoctor > Syntax quick reference.
IMHO, this problem impacts both maintained versions 1.0.15 and 2.0.5.
My proposed solution only fixes my problem, the escaping of {} can be required in other parts of this project - I ddn't check the whole codebase.
Workaround
As stated in the Spring Rest Doc documentation it is possible to override the default templates by providing a file named auto-method-path.snippet in the folder src\test\resources\org\springframework\restdocs\templates\asciidoctor for which the content is:
`+{{method}} {{path}}+`
The text was updated successfully, but these errors were encountered:
…ddpoint (#328)
* 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#326
…point (#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#326
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
Here is a problem I've got with the version
1.0.15
and it's has been verified with thespring-restdocs@1.2.6.RELEASE
Description
I've got some WARN log entries while generating the asciidoc version of the documentation.
Potential solution
The problem seems to be the same than an issue reported in the Spring Rest Doc project see spring-projects/spring-restdocs#527 which has been solved by the commit spring-projects/spring-restdocs@e14bda0.
Based on the issue above and the implemented solution, the template default-auto-method-path.snippet should be modified to make sure the
path
of the REST API is surrounded by+ ... +
which in turn will guarantee a pass-through of the whole string (see AsciiDoctor > Syntax quick reference.IMHO, this problem impacts both maintained versions
1.0.15
and2.0.5
.My proposed solution only fixes my problem, the escaping of
{}
can be required in other parts of this project - I ddn't check the whole codebase.Workaround
As stated in the Spring Rest Doc documentation it is possible to override the default templates by providing a file named
auto-method-path.snippet
in the foldersrc\test\resources\org\springframework\restdocs\templates\asciidoctor
for which the content is:The text was updated successfully, but these errors were encountered: