♻ Strip empty whitespace from description extracted from docstrings (#2821)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
Andrey SemakinandSebastián Ramírez authored and GitHub committed 2022-08-23 13:47:19 +00:00
1 parent f8f5281ef5
commit f6808e76dc
2 files changed
+2 -2

No files matched your search

@@ -31,7 +31,7 @@ openapi_schema = {
},
},
"summary": "Create an item",
"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\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",
"operationId": "create_item_items__post",
"requestBody": {
"content": {