docfx icon indicating copy to clipboard operation
docfx copied to clipboard

REST API: Issue overwriting a parameter "description" in a swagger operation

Open bfcamara opened this issue 10 years ago • 3 comments

When overwriting a parameter "description", all parameters get the new description

Here is an example

...
                "parameters": [
                    {
                        "name": "db",
                        "in": "path",
                        "description": "",
                        "required": true,
                        "type": "integer",
                        "format": "int32"
                    },
                    {
                        "name": "accountKey",
                        "in": "query",
                        "description": "",
                        "required": true,
                        "type": "string"
                    }
                ],~
...

And the the overwrite md


---
uid: my-uid
summary: a summary
parameters:
    - name: db
      description: The database number
    - name: accountKey
      description: The account key

---

And here is the result

image

bfcamara avatar Oct 24 '16 13:10 bfcamara

Yes this is indeed an issue, we fixed it by #825

hellosnow avatar Oct 25 '16 06:10 hellosnow

@hellosnow Thank you very much.

bfcamara avatar Oct 25 '16 07:10 bfcamara

The fix will be released at version 2.6.4

hellosnow avatar Oct 26 '16 05:10 hellosnow