♻ 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 Semakin
2022-08-23 18:47:19 +05:00
committed by GitHub
parent f8f5281ef5
commit f6808e76dc
2 changed files with 2 additions and 2 deletions

View File

@@ -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": {