Hi,
I have a code segment as below:
@app.post('/infer/')
async def infer(request: Request = Body(...)):
But in the API spec, the request body is not defined as a mandatory field. Infact there is no body.
"/infer/": {
"post": {
"summary": "Infer",
"operationId": "infer_infer__post",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
}
Is there any additional steps required to make this mandatory. Please advice.
Thank you
Hi,
I have a code segment as below:
But in the API spec, the request body is not defined as a mandatory field. Infact there is no body.
Is there any additional steps required to make this mandatory. Please advice.
Thank you