I am designing a web api. I am taking request body and want some parameters to be compulsarily available or that they cannot be empty.
For e.g.:-
request body =
{
"user" : username,
""id" : ID,
"detail" : {
"hair" : yes,
"height" : 111,
"weight" : 29
}
}
I want to set "id" to be required=True, and "height" also required=True.
I searched and got how to set "id" required=True {fields.Str(required=True)}, But I am not getting how to set "height" required=True.
Thanks