'list of dicts swagger python
I want to specify a List of dict and the keys of that dicts also in my swagger documentation,
class GetCustomerDetailsByIdPOUT(BaseModel):
profileData: Customer
scanData : Reports
Scan: list
Currently, I am getting this
"Scan": [
"string"
]
You can also see in the image
I want something like this
"scans": [
{
"id": 0,
"cameraId": 0,
"reportId": 0,
"sequenceNo": 1,
"raw": [
"string"
],
"spectrum": 1,
"view": 1
}
]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

