From d2d6ff661ae4c3f85674cf0806ee87e787f3c220 Mon Sep 17 00:00:00 2001 From: wing328 Date: Wed, 30 Sep 2015 17:24:11 +0800 Subject: [PATCH] fix parameter name in dynamic html --- .../swagger-static/operation.mustache | 2 +- samples/dynamic-html/docs/index.html | 38 +++++++++---------- .../dynamic-html/docs/operations/PetApi.html | 24 ++++++------ .../dynamic-html/docs/operations/UserApi.html | 2 +- 4 files changed, 33 insertions(+), 33 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/swagger-static/operation.mustache b/modules/swagger-codegen/src/main/resources/swagger-static/operation.mustache index c2c70aa906d..bd7b7444c8f 100644 --- a/modules/swagger-codegen/src/main/resources/swagger-static/operation.mustache +++ b/modules/swagger-codegen/src/main/resources/swagger-static/operation.mustache @@ -23,7 +23,7 @@ {{#isPathParam}}Path: {{/isPathParam}} {{#isHeaderParam}}Header: {{/isHeaderParam}} {{#isBodyParam}}Body: {{/isBodyParam}} - {{paramName}} + {{baseName}} {{dataType}}{{#baseType}}({{baseType}}){{/baseType}} {{#optional}}(optional){{/optional}}

{{description}}

diff --git a/samples/dynamic-html/docs/index.html b/samples/dynamic-html/docs/index.html index 1b7ba98febb..22ed5d50b68 100644 --- a/samples/dynamic-html/docs/index.html +++ b/samples/dynamic-html/docs/index.html @@ -58,25 +58,6 @@ -
-
- StoreApi -
- -
-
PetApi @@ -104,6 +85,25 @@
+
+
+ StoreApi +
+ +
+
diff --git a/samples/dynamic-html/docs/operations/PetApi.html b/samples/dynamic-html/docs/operations/PetApi.html index 0c7bb8bd189..08e1cd1d42c 100644 --- a/samples/dynamic-html/docs/operations/PetApi.html +++ b/samples/dynamic-html/docs/operations/PetApi.html @@ -206,18 +206,6 @@
  • - - Header: - - apiKey - String - -

    -
  • - -
  • - - Path: @@ -227,6 +215,18 @@

    Pet id to delete

  • +
  • + + + + Header: + + api_key + String + +

    +
  • +

    uploadFile

    diff --git a/samples/dynamic-html/docs/operations/UserApi.html b/samples/dynamic-html/docs/operations/UserApi.html index f3af4dcaa76..8639fdfbf9f 100644 --- a/samples/dynamic-html/docs/operations/UserApi.html +++ b/samples/dynamic-html/docs/operations/UserApi.html @@ -161,7 +161,7 @@ username String -

    The name that needs to be fetched. Use user1 for testing.

    +

    The name that needs to be fetched. Use user1 for testing.