* Upgrade *path operation*`doctsring` parsing to support proper Markdown descriptions. New documentation at <ahref="https://fastapi.tiangolo.com/tutorial/path-operation-configuration/#description-from-docstring"target="_blank">Path Operation Configuration</a>. PR <ahref="https://github.com/tiangolo/fastapi/pull/163"target="_blank">#163</a>.
* Upgrade Pydantic to version `0.23`. PR <ahref="https://github.com/tiangolo/fastapi/pull/160"target="_blank">#160</a> by <ahref="https://github.com/euri10"target="_blank">@euri10</a>.
* Fix typo in Tutorial about Extra Models. PR <ahref="https://github.com/tiangolo/fastapi/pull/159"target="_blank">#159</a> by <ahref="https://github.com/danielmichaels"target="_blank">@danielmichaels</a>.
@ -42,6 +42,8 @@ You can add a `summary` and `description`:
As descriptions tend to be long and cover multiple lines, you can declare the path operation description in the function <abbrtitle="a multi-line string as the first expression inside a function (not assigned to any variable) used for documentation">docstring</abbr> and **FastAPI** will read it from there.
You can write <ahref="https://en.wikipedia.org/wiki/Markdown"target="_blank">Markdown</a> in the docstring, it will be interpreted and displayed correctly (taking into account docstring indentation).
OpenAPI specifies that descriptions can be written in Markdown syntax, but the interactive documentation systems included still don't support it at the time of writing this, although they have it in their plans.
## Response description
You can specify the response description with the parameter `response_description`:
"description":"\nCreate an item with all the information:\n\n * name: each item must have a name\n * description: a long description\n * price: required\n * tax: if the item doesn't have tax, you can omit this\n * tags: a set of unique tag strings for this item\n",
"description":"Create an item with all the information:\n\n- **name**: each item must have a name\n- **description**: a long description\n- **price**: required\n- **tax**: if the item doesn't have tax, you can omit this\n- **tags**: a set of unique tag strings for this item",