Skip to content

Output swagger seems incorrect #688

Closed
@lpabon

Description

@lpabon

I'm using protoc 3.3.1 and proto-gen-go 1.1.0. When I output the swagger for api.proto and diff it with the previous output of grpc-gateway version 1.4.1 I get the following incorrect output diff:

       "post": {
-        "summary": "Create",
+        "summary": "Enumerate lists all the nodes in the cluster.",
         "operationId": "Create",
         "responses": {
           "200": {
@@ -90,7 +90,7 @@
     },
     "/v1/cloudbackup/catalog/{backup_id}": {
       "get": {
-        "summary": "Catalog",
+        "summary": "Restores a volume to a specified snapshot",
         "operationId": "Catalog",
         "responses": {
           "200": {
@@ -122,7 +122,7 @@
     },
     "/v1/cloudbackup/deleteall": {
       "post": {
-        "summary": "DeleteAll",
+        "summary": "Clear the alert for a given resource",
         "operationId": "DeleteAll",
         "responses": {
           "200": {
@@ -149,7 +149,7 @@

Seems something is incorrect. Is this due to a version issue or a bug in the swagger output?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions