fix hasHeaderParams tag

This commit is contained in:
wing328 2016-10-13 18:15:04 +08:00
parent f63cae8aae
commit 4b0d58abfd
5 changed files with 24 additions and 6 deletions

View File

@ -92,4 +92,16 @@ public class ConfluenceWikiGenerator extends DefaultCodegen implements CodegenCo
} }
return objs; return objs;
} }
@Override
public String escapeQuotationMark(String input) {
// just return the original string
return input;
}
@Override
public String escapeUnsafeCharacters(String input) {
// just return the original string
return input;
}
} }

View File

@ -32,12 +32,12 @@ h2. Endpoints
{{/bodyParams}} {{/bodyParams}}
{{/hasBodyParam}} {{/hasBodyParam}}
{{#hasHeaderParam}} {{#hasHeaderParams}}
h5. Header Parameters h5. Header Parameters
||Name||Description||Required||Default||Pattern|| ||Name||Description||Required||Default||Pattern||
{{#headerParam}}{{>param}} {{#headerParam}}{{>param}}
{{/headerParam}} {{/headerParam}}
{{/hasHeaderParam}} {{/hasHeaderParams}}
{{#hasQueryParams}} {{#hasQueryParams}}
h5. Query Parameters h5. Query Parameters
@ -91,4 +91,4 @@ h2. Models
{{#vars}} |{{name}} |{{#isNotRequired}}(x){{/isNotRequired}} |{{datatype}} |{{description}} | {{#vars}} |{{name}} |{{#isNotRequired}}(x){{/isNotRequired}} |{{datatype}} |{{description}} |
{{/vars}} {{/vars}}
{{/model}} {{/model}}
{{/models}} {{/models}}

View File

@ -80,12 +80,12 @@
</div> <!-- field-items --> </div> <!-- field-items -->
{{/hasBodyParam}} {{/hasBodyParam}}
{{#hasHeaderParam}} {{#hasHeaderParams}}
<h3 class="field-label">Request headers</h3> <h3 class="field-label">Request headers</h3>
<div class="field-items"> <div class="field-items">
{{#headerParam}}{{>headerParam}}{{/headerParam}} {{#headerParam}}{{>headerParam}}{{/headerParam}}
</div> <!-- field-items --> </div> <!-- field-items -->
{{/hasHeaderParam}} {{/hasHeaderParams}}
{{#hasQueryParams}} {{#hasQueryParams}}
<h3 class="field-label">Query parameters</h3> <h3 class="field-label">Query parameters</h3>

View File

@ -60,7 +60,9 @@ h2. Endpoints
|petId |Pet id to delete |(/) | | | |petId |Pet id to delete |(/) | | |
h5. Header Parameters
||Name||Description||Required||Default||Pattern||

View File

@ -288,6 +288,10 @@ font-style: italic;
<h3 class="field-label">Request headers</h3>
<div class="field-items">
</div> <!-- field-items -->