Skip to content
wilkinsona Disable interpolation of Asciidoctor path parameter table's title
Previously, when generating Asciidoctor snipppets, the title of the
path parameter table was interpolated. The title of the table is the
path including its parameters. The parameters are typically surrounded
by { and }. This is the same syntax used for attributes in
Asciidoctor. With interpolation enabled this caused Asciidoctor to
interpret the parameter as an attribute reference and attempt to
replace it. This would either result in unwanted replacement of the
parameter with the value of the attribute or it would result in a
warning about a missing attribute.

This commit surrounds the title of the table with + characters. This
disables all interpolation for the title, thereby preventing
unwanted replacement or attempted replacement of the path's
parameters.

Closes gh-527
Latest commit e14bda0 Jul 16, 2018
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
default-curl-request.snippet Allow custom templates to be provided for a specific template format Feb 8, 2016
default-http-request.snippet Disable wrapping in Asciidoctor HTTP request and response snippets Apr 12, 2016
default-http-response.snippet Disable wrapping in Asciidoctor HTTP request and response snippets Apr 12, 2016
default-httpie-request.snippet Polish contribution Mar 9, 2016
default-links.snippet Disable formatting of monospaced text in Asciidoctor templates Mar 27, 2018
default-path-parameters.snippet Disable interpolation of Asciidoctor path parameter table's title Jul 16, 2018
default-request-body.snippet Add support for documenting body of a request, response or request part Oct 31, 2016
default-request-fields.snippet Disable formatting of monospaced text in Asciidoctor templates Mar 27, 2018
default-request-headers.snippet Disable formatting of monospaced text in Asciidoctor templates Mar 27, 2018
default-request-parameters.snippet Disable formatting of monospaced text in Asciidoctor templates Mar 27, 2018
default-request-part-body.snippet Add support for documenting body of a request, response or request part Oct 31, 2016
default-request-part-fields.snippet Disable formatting of monospaced text in Asciidoctor templates Mar 27, 2018
default-request-parts.snippet Disable formatting of monospaced text in Asciidoctor templates Mar 27, 2018
default-response-body.snippet Add support for documenting body of a request, response or request part Oct 31, 2016
default-response-fields.snippet Disable formatting of monospaced text in Asciidoctor templates Mar 27, 2018
default-response-headers.snippet Disable formatting of monospaced text in Asciidoctor templates Mar 27, 2018
You can’t perform that action at this time.