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;
}
@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}}
{{/hasBodyParam}}
{{#hasHeaderParam}}
{{#hasHeaderParams}}
h5. Header Parameters
||Name||Description||Required||Default||Pattern||
{{#headerParam}}{{>param}}
{{/headerParam}}
{{/hasHeaderParam}}
{{/hasHeaderParams}}
{{#hasQueryParams}}
h5. Query Parameters

View File

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

View File

@ -60,6 +60,8 @@ h2. Endpoints
|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 -->