Hi,
What is the best way to include a meta object in the response like in the following example:
{
"meta": {
"success": true,
"info": [
{
"type": "message, warning or error",
"display": true,
"title": "To much to dos",
"content": "You have 100 to dos, limit reached"
}
]
},
"data": [
{
"title": "to do 1"
},
{
"title": "to do 100"
}
]
}
I already implemented a custom Response, where I can pass my meta info object as arguments but the problem is that this data structure gets not recognized by drf-spectacular to generate the OpenAPI response schema.
Thank You for your help